the only issue with this regular expression is if the user tries to put any 
non-alphanumeric symbol in the string such as 'word-1' or 'word*1'. 

how can i amend the regular expression to allow for any of these characters:

we tried '[/w-/W]+|"[\w\s-/W]*"' but then it ignores the splitting on the 
double quotes

thanks



> thanks, the following works fine:
> 
> <cfset result = REMatch('\w+|"[\w\s]*"','word1 word2 "word3 and word 
> 4" word5 word6') />
> 
> >You could Use REFind() to extract the strings in quotes first.
> >Then you can use ListToArray() on what's left
> >
> >
> >
> >
> >> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345785
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to