Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 musing on the Monastery: (15)
As of 2015-07-02 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (40 votes), past polls