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-_]+[^a-zA-Z0-9-_]/
Something that's not in a word, followed by something in a word, followed by
something not in a word.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 03, 2001 12:11 PM
To: [EMAIL PROTECTED]
Subject: don't understand word boundary
on page 83 of Learning Perl, they give a regex
example:
/abc\bdef/;
#never matches (impossibe for a boundary there)
Could someone please explain this to me clearly so I
can actually understand word boundaries?
thanks...
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/