Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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?
[Corion]: A good weekstart to everybody! Another 3-day workweek here ;-D
[Corion]: (well, this week I am on call for Thursday because my lazy colleague is going to a 3-day festival :) )
[Corion]: The grand upside of this weekend was a new release of WWW::Mechanize:: Chrome, prompted by the author of a Facebook scraper with a nice UI. They are moving from Firefox to Chrome. A user, yay :D

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2018-05-28 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?