in reply to Re: Curious Regex
in thread Curious Regex
Thanks... Yeah, unfortunately the "simpler" method doesn't work because I need to preserve the control chars outside of the tags.
Here's what I have as a "two stage" deal... I was just hoping someone could help me figure out how to make this work as a one liner.
if ($text =~ /<\/Mil[^>]*>(.*)\x9D/i) { my $string = $1; $string =~ s/[\x90\x8F]//g; $text =~ /(<\/Mil[^>]*>).*(\x9D)/$1$string$2/i; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Curious Regex
by ELISHEVA (Prior) on Feb 11, 2009 at 18:48 UTC |