Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Using sprintf in regular expreession.

by Fletch (Bishop)
on Feb 02, 2022 at 20:41 UTC ( [id://11141081]=note: print w/replies, xml ) Need Help??


in reply to Using sprintf in regular expreession.

Also not directly relevant because you've got them because of your misuse of /e, but in general if you need to use slashes in a match or substitution it's generally cleaner to use an alternate delimiter (or matched pair of delimiters) like s{MATCH}{REPLACE} instead to reduce the amount of backwhacking you need to do.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2026-01-20 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (124 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.