Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 cooling their heels in the Monastery: (6)
As of 2014-08-31 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls