Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Function call in a regular expression

by tedrek (Pilgrim)
on Jul 31, 2003 at 17:51 UTC ( #279805=note: print w/replies, xml ) Need Help??


in reply to Function call in a regular expression

Because regexes are like double quoted strings you can use hex escape or octal escapes inside them, so just write that as

$text =~ s|\xe7|c|gise;

I'm not sure if there is a way to use decimal escapes though.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2021-09-19 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?