Topic: Need help with scan syntax please
I'm trying to parse my tags for my view template. Right now the issue is that the tag can be one word (table) or a phrase (new york) so in the case of a my tag string:
a = 'new york' table '17th street'
I want to scan so that the results I get are:
new york, table, 17th street
Using a=st.scan(/\w+/) gives me new, york, table, 17th, street
Is there any way to alter the scan statement above to give me what I need? Else is there another suggested method?
Thanks in advance..