Re: don't understand word boundary

2001-06-03 Thread Jeff Pinyan
On Jun 3, [EMAIL PROTECTED] said: >Could someone please explain this to me clearly so I >can actually understand word boundaries? I've tried to do this in Chapter 3, "Extending and Controlling", of my upcoming book, "Regular Expressions in Perl". If you read it, it might help shed some light on

Re: don't understand word boundary

2001-06-03 Thread Randal L. Schwartz
> "You" == <[EMAIL PROTECTED]> writes: You> on page 83 of Learning Perl, they give a regex You> example: You> /abc\bdef/; You> #never matches (impossibe for a boundary there) You> Could someone please explain this to me clearly so I You> can actually understand word boundaries? First

RE: don't understand word boundary

2001-06-03 Thread Peter Scott
At 12:14 PM 6/3/2001 -0400, Eduard Grinvald wrote: >The equivalent of specifying a word boundary would be roughly the following >regex: >/[^a-zA-Z0-9-_][a-zA-Z0-9-_]+[^a-zA-Z0-9-_]/ >Something that's not in a word, followed by something in a word, followed by >something not in a word. Sorry, this

RE: don't understand word boundary

2001-06-03 Thread Eduard Grinvald
Hey, Ok, basically a word boundary is considered something that could be in a traditional word, surround by something that can't be in a word (spaces, tabs, non-printable chars, etc). The equivalent of specifying a word boundary would be roughly the following regex: /[^a-zA-Z0-9-_][a-zA-Z0-9-_]+[