1. 14
  1.  

  2. 2

    I use Lua Patterns where possible. I find them easier to work with than most regex libraries and they have the little bit extra that makes them not a true regex but the extra you usually want (matching things like parens).

    https://www.lua.org/pil/20.2.html

    1. 1

      The best thing about knowing regexes, in my opinion, is how it helps with refactoring. Got an assignment the wrong way around? s/\(\w\+\)\s=\s\(\w\+\)/\2 = \1.