Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: regular expression

by staeryatz (Monk)
on Nov 03, 2001 at 07:34 UTC ( [id://122999]=note: print w/replies, xml ) Need Help??


in reply to regular expression

Another explaination behind the answer...

With regex's and meta characters, it depends on whether or not you want to join the meta character with the pattern as a single atom.

If the meta character is placed in the parenthesis with a pattern, then it'll be included in as part of the backreference variable.

In your case with using the meta character \b, the "word boundary", it is not something that represents (a) character(s), therefore it wouldn't show up in the backreference variable.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-25 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found