> You could look for hash tags without an "&" in front of it.  something
> like
> this: (?:[^&]|^)##([a-z0-9_\-]+)
> ~Mahcsig
> 

That was close, due to the needs of the code, I had to modify it a bit but
you definitely put me on the right track.

In the end, I arrived at this ([^&]|^)##([a-z0-9_\-]+) as I needed the first
group to return too because the RegEx was matching the preceding character
whether that was a space, comma or whatever so I needed it so I could
reference it in the replace.

ReReplaceNoCase(arguments.tweet, "([^&]|^)##([a-z0-9_\-]+)", "\1<a
href=""http://twitter.com/search?q=%23\2"";>##\2</a>", "ALL")

Thanks...

Paul





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:325326
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to