Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Re: regex needed with match operator

by broquaint (Abbot)
on Apr 28, 2003 at 13:47 UTC ( [id://253689]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: regex needed with match operator
in thread regex needed with match operator

Would you mind explaining exactly what the \z and x are doing in the regex?
Sure, to quote the docs
\z Match only at end of string
This is very similar to $ except $ matches the end of a line or before a newline.
x Extend your pattern's legibility by permitting whitespace and comments.
As it says, it allows for more readable regex, which is generally desirable considering the acute succinctness of regular expressions.
HTH

_________
broquaint

  • Comment on Re: Re: Re: regex needed with match operator

Replies are listed 'Best First'.
Re: Re: Re: Re: regex needed with match operator
by Anonymous Monk on Apr 28, 2003 at 14:04 UTC
    Thank you,
    It makes a lot more sense now, and I didn't realize the differnece between $, and \z, but now I do.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-24 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found