Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
There's more than one way to do things
 
PerlMonks  

Re^2: Regex Anchors confusion

by kelan (Deacon)
on May 18, 2005 at 10:53 UTC ( [id://458234]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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

I just wanted to point out something that your response seems to imply.

You do have a word break and then a new line at the end, but there isn't a space before it.

Even if he had a space before the newline it wouldn't match, because there wouldn't be a word break between the space and the end of the string. As inman says below, I can't think of any situation where / \b$/ would match. I'm not sure what it is about the word break anchor, but it seems to be the most misunderstood of the anchors. I know I had problems getting a grasp on it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://458234]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.