Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: regex for removing quoted text

by roboticus (Canon)
on Mar 10, 2011 at 04:56 UTC ( #892344=note: print w/ replies, xml ) Need Help??


in reply to regex for removing quoted text

You say you've tried "everything possible", so just pick the one that gave you the correct solution. ;^)

Seriously, show the code that you've tried. I'm sure someone can (and probably will) just give you the answer, but it's more satisfying to help someone fix their code, rather than handing you the answer. Once you put up some code, someone will be sure to give you a hand finding out where you have difficulties.

I've recently played with YAPE::Regex::Explain, and if you try it out, you can tweak your regular expressions and have it tell you what it will do. That's a pretty good way to see where you're going wrong.

I'm assuming that you've already read perldoc perlre, so I won't bother mentioning it.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Update: Repaired CPAN link, thanks to toolic and atcroft for the catch!


Comment on Re: regex for removing quoted text
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://892344]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2014-10-30 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (211 votes), past polls