Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Replacing characters in a line

by pelagic (Curate)
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


Comment on Re: Replacing characters in a line
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-09-02 22:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (32 votes), past polls