in reply to Mnemonic for begin/end chars in regexes
Since nobody has mentioned it yet, you can just use the synonyms of \A for the start and \Z for the end. That's about as intuitive as you can get, I would think. The only difference comes if you use the /m modifier. See perlre for the details.
🦛
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mnemonic for begin/end chars in regexes
by Smonff (Monk) on May 12, 2023 at 14:17 UTC | |
by hippo (Archbishop) on May 12, 2023 at 22:38 UTC |