Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Regex Anchors confusion

by merlyn (Sage)
on May 18, 2005 at 15:30 UTC ( [id://458248]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Regex Anchors confusion
in thread Regex Anchors confusion

Well, technically, \b matches between a word character, and the failure to match a word character (such as the edge of a string). I know you know that. This is for others that are following along at home. {grin}

So, there are four pairs: word-word, word-nonword, edge-word, edge-nonword. \b matches the middle two of those, and \B matches the outer two of those.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^4: Regex Anchors confusion
by japhy (Canon) on May 18, 2005 at 16:02 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://458248]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2025-07-15 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.