ChevLucas has asked for the wisdom of the Perl Monks concerning the following question:
It works fine, but can not cope with some expression, eg.: '<?xml version="1.0" encoding="UTF-8"?>' Any idea?while ( $file =~ /(<[^>]*>)/g ) { # print "'$1'\n"; $file =~ s/$1//g; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: s/// don't delete matching phrase
by Corion (Patriarch) on Oct 28, 2014 at 12:25 UTC | |
|
Re: s/// don't delete matching phrase
by Loops (Curate) on Oct 28, 2014 at 12:38 UTC | |
|
Re: s/// don't delete matching phrase
by hippo (Archbishop) on Oct 28, 2014 at 12:28 UTC | |
|
Re: s/// don't delete matching phrase
by Eily (Monsignor) on Oct 28, 2014 at 12:51 UTC | |
|
Re: s/// don't delete matching phrase
by Hameed (Acolyte) on Oct 29, 2014 at 06:24 UTC | |
by choroba (Cardinal) on Oct 29, 2014 at 12:54 UTC | |
|
Re: s/// don't delete matching phrase
by ChevLucas (Initiate) on Oct 28, 2014 at 12:34 UTC | |
|
Re: s/// don't delete matching phrase (/ge)
by tye (Sage) on Oct 29, 2014 at 14:33 UTC | |
|
Re: s/// don't delete matching phrase
by Pizentios (Scribe) on Oct 31, 2014 at 16:10 UTC |