I have a dynamically created a comma delimited string via form submission:
i.e. "Monday, Tuesday, Thursday, Saturday" OR "Tuesday, Thursday" etc.
Pretty standard stuff. I have already cleaned the string to remove any
preceeding or trailing comma's and trimmed all the whitespace. My question
is, using regex and coldfusion, how would I find the last occurance of a
comma in the string (between Thursday and Saturday for example), and replace
that comma withh the word "and" so my string would wind up being "Monday,
Tuesday, Thursday and Saturday". Any help would be appreciated. thank you.
-- 
View this message in context: 
http://old.nabble.com/How-to-find-the-last-comma-and-the-word-following-it-w-regex-tp33460091p33460091.html
Sent from the Cold Fusion - RegEx mailing list archive at Nabble.com.


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

Reply via email to