#format wiki
#language en
= regex recipies and notes =

 * Negative regex matching
   * https://stackoverflow.com/questions/406230/regular-expression-to-match-a-line-that-doesnt-contain-a-word

 * grep return only the section that match, using perl mode and lookback {{{
echo "123 foo YEA bar ok" > /tmp/test.txt
$ grep -oP '(?<=foo )\w+(?= bar)' test.txt
YEA
}}}
  
...