Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^6: Regex with Backslashes

by anita2R (Scribe)
on May 17, 2020 at 22:38 UTC ( #11116878=note: print w/replies, xml ) Need Help??


in reply to Re^5: Regex with Backslashes
in thread Regex with Backslashes

It would be presumptuous of me to answer your question, especially as my programming skills are just at hobby level, but I recognize that backslash in a single quoted string behaves differently before a ', so you effectively lose the closing quote. I do note that print '\'' . "\n"; prints "'" which would allow you to include a single quote inside a single quoted string much as you would use \" to include double quotes in a double quoted string.

As to my grasp of <'\x' and '\\x' produce the same string by using two different representations of the same character>, you're right!

Replies are listed 'Best First'.
Re^7: Regex with Backslashes
by AnomalousMonk (Bishop) on May 17, 2020 at 23:13 UTC

    It may or may not be presumptuous of you to answer the question, but it's clear that you understand what I said you did not. Please accept my apology! :)


    Give a man a fish:  <%-{-{-{-<

      Most certainly accepted

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2020-11-24 04:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?