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 ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-03-29 12:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found