in reply to Re: Search and Replace for XML
in thread Search and Replace for XML
Consider:
my $line = '<!-- Gone > Not gone -->'; $line =~s/<![^>]*>/<!>/; print $line;
Prints:
<!> Not gone -->
which most likely is not the expected result.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Search and Replace for XML
by srprabu (Initiate) on Apr 29, 2008 at 04:23 UTC |