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?


_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl

Reply via email to