Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How can I match this }\n} in perl

by haukex (Archbishop)
on Feb 21, 2019 at 08:15 UTC ( [id://1230282]=note: print w/replies, xml ) Need Help??


in reply to How can I match this }\n} in perl

i need to match "}\n}" (without quotes and newline as in real).

The regex to match "}\n}" is /}\n}/ (unless you're using m{}, in which case you need to write m{\}\n\}}). Since that's pretty obvious, I wonder if maybe you're having problems with some of your code? If that's the case, maybe you could show the code you're having problems with in the form of a Short, Self-Contained, Correct Example: a short, runnable piece of code that reproduces the issue, short sample input, the expected output for that input, and the output you're getting instead, including any error messages (code and input/output in <code> tags).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-19 12:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found