There’s a mnemonic that I love for remembering which metacharacter to
use for each anchor: “First you get the power, then you get the money.”
The caret character is used for exponentiation in many programming
languages, so “power” (^) is used for the beginning of a line and
“money” ($) is used for the end of a line.
https://regexr.com/ you can use this site to test regular expressions.
I remember seeing so much bash script on IRC back in the past. Now I finally understand some of it. I don't know how I never thought to look it up? I always thought it was TCL, and that TCL is something I would never need. Now I see how my old dream of a text based UI was right in front of me but I never saw it.
No comments:
Post a Comment