Evaluating a string of text and looking for specific characters

biffjo <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi,

I am using freemarker to evaluate a string of text from a twitter xml feed.

At this point, I have the text in a string. Let's say its this for example:

hello @funkhauser, I am going to see the #phillies this year.

What I need to do is 'loop' through the string and when it hits on an '@' or
'#' symbol, I need to make that part of the string a link. Anyone have a
suggestion on the best way to do this?

Thanks in advance,
B 
-- 
View this message in context: http://n4.nabble.com/Evaluating-a-string-of-text-and-looking-for-specific-characters-tp975979p975979.html
Sent from the freemarker-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.