Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: Re: regex: only want [a-zA-Z] and comma chars in a string

by davido (Archbishop)
on Oct 12, 2003 at 18:36 UTC ( #298688=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: regex: only want [a-zA-Z] and comma chars in a string
in thread regex: only want [a-zA-Z] and comma chars in a string

Ack! You got me. haha. You are, of course, correct. \b,\b works because there is no word boundry at the junction of comma and end of string, or comma and beginning of string. It also works because there is no word boundry at the junction of two proximate commas. Good solution, and kudos for coming up with the briefest one so far. ;)


Dave


"If I had my life to do over again, I'd be a plumber." -- Albert Einstein
  • Comment on Re: Re: Re: Re: regex: only want [a-zA-Z] and comma chars in a string

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://298688]
help
Chatterbox?
NodeReaper patrols the perimeter

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2017-12-14 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (408 votes). Check out past polls.

    Notices?