Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: use of constants in regex substitutions?

by Abigail-II (Bishop)
on Sep 23, 2003 at 15:27 UTC ( [id://293531]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: use of constants in regex substitutions?
in thread use of constants in regex substitutions?

Oh, sure, but then your first suggestion, putting them in single quotes isn't going to work either, because I don't think the intent is to turn '.txt' into '\.mif'.

Abigail

  • Comment on Re: use of constants in regex substitutions?

Replies are listed 'Best First'.
Re: Re: use of constants in regex substitutions?
by edan (Curate) on Sep 23, 2003 at 15:38 UTC

    Quite right! Good thing I recommended the second option... ;-). I maintain that \Q is the right way to do it.

    --
    3dan

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found