http://www.perlmonks.org?node_id=1141529


in reply to Re^3: Roughly matching an ipv6 address with sql wildcard
in thread Roughly matching an ipv6 address with sql wildcard

Does that mean that \A and \Z bind more tightly than | and if so, where is this precedence listed?

Neil Watson
watson-wilson.ca

  • Comment on Re^4: Roughly matching an ipv6 address with sql wildcard

Replies are listed 'Best First'.
Re^5: Roughly matching an ipv6 address with sql wildcard
by graff (Chancellor) on Sep 10, 2015 at 14:12 UTC
    Everything is explained in the perlre man page. The first subsection under "Regular Expressions" is "Metacharacters", where it should be clear that there is no difference in "precedence" between anchors and the alternation operator (\A and \Z are just variations on ^ and $). In fact, it's not so much a matter of "binding" or "precedence", but rather an issue of "grouping" (via parens, which are also explained in that same section).