Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: regex for removing quoted textby atcroft (Abbot) |
on Mar 10, 2011 at 05:02 UTC ( [id://892345]=note: print w/replies, xml ) | Need Help?? |
You want to look at the /s switch on the s/// operator. For instance, with the following code (in a one-liner with -l): I get the following result, which is similar to what you indicated you needed:
Hope that helps. Update: 2011-03-09 I cannot help but second roboticus's references and suggestions. There is much useful information (and I now have another module to take a look at when I have "spare" time available again). :) Update: 2011-03-09 It appears as if the module in question may be YAPE::Regex::Explain (as I found when I tried installing it to play with it myself).
In Section
Seekers of Perl Wisdom
|
|