RE: Need Regex help for finding and Hyperlinks words in String
Great. Glad to help. I def recommend you learn at least the basics of Regex. It's helpful in a wide range of applications. andy -Original Message- From: Mike Francisco [mailto:cfmike...@gmail.com] Sent: Friday, June 05, 2009 2:53 PM To: cf-talk Subject: RE: Need Regex help for finding and Hyperlinks words in String Thanks Andy. That is it. Actually, I did not go very far since I am not that familiar with Regex. I only knew that Regex was the right thing to use. > -Original Message- > From: Andy Matthews [mailto:li...@commadelimited.com] > Sent: Friday, June 05, 2009 12:17 PM > To: cf-talk > Subject: RE: Need Regex help for finding and Hyperlinks words in > String > > > Mike... > > > > '@([[:alnum:]]+)', '@\1', 'ALL')> > > > > Just curious...how far did you get in your own testing? > > > andy ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323214 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Need Regex help for finding and Hyperlinks words in String
Thanks Andy. That is it. Actually, I did not go very far since I am not that familiar with Regex. I only knew that Regex was the right thing to use. > -Original Message- > From: Andy Matthews [mailto:li...@commadelimited.com] > Sent: Friday, June 05, 2009 12:17 PM > To: cf-talk > Subject: RE: Need Regex help for finding and Hyperlinks words in String > > > Mike... > > > > '@([[:alnum:]]+)', '@\1', 'ALL')> > > > > Just curious...how far did you get in your own testing? > > > andy ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323213 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Need Regex help for finding and Hyperlinks words in String
Mike... @\1', 'ALL')> Just curious...how far did you get in your own testing? andy -Original Message- From: Mike Francisco [mailto:cfmike...@gmail.com] Sent: Friday, June 05, 2009 1:46 PM To: cf-talk Subject: Need Regex help for finding and Hyperlinks words in String Happy Friday everyone. I was hoping if anyone can help me with regex and a UDF. I have a string/paragraph which contains words beginning with a specific character. I'd like to find all those words and then assign a hyperlink URL to them. Example: If the string is: Lorem ipsum dolor sit amet, consectetur adipisicing. Elit @username sed do eiusmod tempor incididunt ut labore. Et dolore magnaaliqua. Id like to find (all) words beginning with @ and replace them with <a href="/profile.cfm?id=username">@username</a> I look forward to your reply. Thanks for helping. Mike ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323212 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Need Regex help for finding and Hyperlinks words in String
Happy Friday everyone. I was hoping if anyone can help me with regex and a UDF. I have a string/paragraph which contains words beginning with a specific character. I'd like to find all those words and then assign a hyperlink URL to them. Example: If the string is: Lorem ipsum dolor sit amet, consectetur adipisicing. Elit @username sed do eiusmod tempor incididunt ut labore. Et dolore magnaaliqua. Id like to find (all) words beginning with @ and replace them with @username I look forward to your reply. Thanks for helping. Mike ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323211 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4