
Paul
Enthusiast
Nov 4, 2002, 2:47 PM
Post #2 of 2
(267 views)
|
|
Re: [yaniv_av] And more regular expressions ...
[In reply to]
|
Can't Post
|
|
my $string = "bla bla <b> abc def </b> bla bla <b> abc ttt </b> bla bla "; my $new_string; $new_string .= " $1 " while ($string =~ m|(<b>.*?</b>)|g); Or you could just do:
$string =~ s/>.*?</> </g;
(This post was edited by RedRum on Nov 4, 2002, 2:49 PM)
|