Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Regex question

by jeroenes (Priest)
on Nov 14, 2001 at 23:28 UTC ( #125396=note: print w/ replies, xml ) Need Help??


in reply to Regex question

If the tab and the '\' are always at the end of a line, you can use the lvalue of substr:

substr($line,-3,2)=''; #assuming your line ends with a newline $line =~ tr/"//d; #deletes all quotes in your text
If you want to take care of nested quotes, take a look at Parse::RecDescent or the likes.

Cheers,

Jeroen


Comment on Re: Regex question
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2015-07-29 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls