Twelve years I started with Perl and I still can't remember EVERY TIME which one between ^ and $ anchor should be used to match begin and end of regex pattern 🤔
Any mnemonic or memory aid? I can use a cheat sheet, but come on…
Thanks.Note: this is a cross-post from plush.city
In reply to Mnemonic for begin/end chars in regexes by Smonff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |