in reply to Re^2: Mnemonic for begin/end chars in regexes
in thread Mnemonic for begin/end chars in regexes
I'm pretty sure that usage of \A and \Z is less common than usage of ^ and $. But is usage of \A and \Z also less common than confusion of ^ and $? Probably not.
If you want to keep other folks in their comfort zone, stick to ^ and $ and learn which is which. If you are just using your own regexen day-to-day on the CLI then use whatever makes you more comfortable.
🦛
|
---|