Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Replacing characters in a line

by pelagic (Priest)
on Mar 04, 2005 at 11:49 UTC ( #436538=note: print w/replies, xml ) Need Help??


in reply to Replacing characters in a line

Just use "word-boundary anchors" in your regex:
/\bD\b/

pelagic

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://436538]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2017-08-17 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (290 votes). Check out past polls.

    Notices?