[Israel.pm] RegEx in HTML Character

Georges EL OJAIMI G-OJAIMI at cyberia.net.lb
Tue Jan 29 11:30:11 PST 2008


Hello,

I want to benefit from this feature but I don't want to install this 
module, is there a workaround to implement this using only RegEx parameters?

Best regards,
Georgs

Yitzchak Scott-Thoennes wrote:
> 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
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl
>
>   




More information about the Perl mailing list