Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-08-28 02:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (255 votes), past polls