Very good introduction, thanks for the writeup. My only beef with it is that it does not explain the \b metacharacter, which is both one of the most confusing and one of the most useful tokens in regex. Confusing because it does not match a character at all, in fact it matches nothing (like ^ and $) but it does so only at the places where a word ends or begins, which is why it’s so useful…
Very good introduction, thanks for the writeup. My only beef with it is that it does not explain the \b metacharacter, which is both one of the most confusing and one of the most useful tokens in regex. Confusing because it does not match a character at all, in fact it matches nothing (like ^ and $) but it does so only at the places where a word ends or begins, which is why it’s so useful…
I didn't know about
\b
, thanks for sharing it.