[Israel.pm] RegEx in HTML Character

Yitzchak Scott-Thoennes sthoenna at efn.org
Mon Jan 28 23:37:36 PST 2008

On Mon, January 28, 2008 9:00 pm, Yona Shlomo wrote:
> You can try the following hack, but it is risky:
> s/\[([^\[\]]+)\]/<\1>/g; s,<url(="[^"]+")>([^<]+)</url>,<a
> href=\1>\2</a>,g
> See, the above regular expressions do not try to balance
> your markup's open and close tags, nor are aware of whitespace issues,
> quotations and escaping.

http://search.cpan.org/perldoc/HTML::BBCode may be of use?

More information about the Perl mailing list