Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: regex related...search and deleteby The Perlman (Scribe) |
on Jan 14, 2013 at 10:33 UTC ( [id://1013182]=note: print w/replies, xml ) | Need Help?? |
bla ...
depending on your textfile this can be indefinitely complex. are parens ever nested? is it always (L \d+ W \d+)? If it's not a fix format I would try to match every parens-pair, and call a function with the match with /e modifier. s/\(.*?\)/kill_LW($&)/ge
- Ron
In Section
Seekers of Perl Wisdom
|
|