Gossamer Forum
Home : General : Perl Programming :

pattern matching prblem

Quote Reply
pattern matching prblem
Hi,

I'm trying to get rid of all
Code:
<br>
in between
Code:
<pre>
and
Code:
</pre>
tags...

Now why doesn't this work:
Code:
$rec{'Text'} =~ s|<pre>(.*?)<br>(.*?)</pre>|<pre>$1 $2</pre>|gis;

Thanks!
Subject Author Views Date
Thread pattern matching prblem Lex 9191 Jun 17, 2004, 4:21 AM
Thread Re: [Lex] pattern matching prblem
Andy 9104 Jun 17, 2004, 6:11 AM
Thread Re: [Andy] pattern matching prblem
Lex 9101 Jun 17, 2004, 7:16 AM
Thread Re: [Lex] pattern matching prblem
Andy 9090 Jun 17, 2004, 7:35 AM
Thread Re: [Andy] pattern matching prblem
Lex 9117 Jun 17, 2004, 8:40 AM
Thread Re: [Lex] pattern matching prblem
yogi 9092 Jun 18, 2004, 12:44 AM
Post Re: [yogi] pattern matching prblem
Lex 9042 Jun 18, 2004, 1:17 AM
Post Re: [Andy] pattern matching prblem
BlueBottle 9012 Jul 17, 2004, 7:14 AM