Re: Evaluating a string of text and looking for specific characters
On Mon, Dec 21, 2009 at 2:08 AM, biffjo <[hidden email]> wrote:
> 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?
Even it's possible using string buildin split function (
to search the @# and generate links, but I would suggest you write a
(http://freemarker.org/docs/dgui_misc_userdefdir.html) to search the
special chars and generate links. You could using regex to search
chars and do the trick, it's much easier :) e.g.
hello @funkhauser, I am going to see the #phillies this year.