When it comes to learning, I buy into the “learning by doing” philosophy. This is especially true when learning a computer tool or programming language. I stumbled upon this regex tutorial that makes use of a set of exercises in conjunction with regetron. Time to hone in on my regex skills.
I recently had to add one to all numbers of the form =”n”= where
n is a number in a text file. Thanks to
#emacs, I could do so with the the command
replace-regexp to change =\”\([0-9]+\)\”= to =”\,(1+ \#1)”=. I’m never going to remember this so I’m writing it down now.