Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: string substitution

by fletcher_the_dog (Friar)
on Oct 08, 2003 at 17:02 UTC ( [id://297658]=note: print w/replies, xml ) Need Help??


in reply to string substitution

I may be wrong, but it sounds like you only want to replace BAD with HELL when BAD is a whole word.(e.g. you don't want "BADGER" to become "HELLGER"). If that is the case you might want to look at "\b" in "perldoc perlre"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-24 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found