Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://125396]
help
Chatterbox?
[erix]: my objection to sigs is just that they take screen space. ( Some monks would have *several* slogans underneath a 1-liner reply )
[Discipulus]: a solution would be disabiltate sig as default and let users to show them
[karlgoethebier]: now it's getting weird...
[GotToBTru]: 'getting'?

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2017-06-22 12:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (519 votes). Check out past polls.