Everyday Regular Expressions

On December 10, 2013, Jas Eckard gave this talk on Everyday Regular Expressions:


 * what/why
 * wildcards/glob
 * search (replace)
 * "meta-language"
 * BRE, ERE, PCRE
 * components
 * literal characters
 * grep
 * metacharacters
 * . &larr; any character
 * begin/end of line
 * character classes
 * [dvlshjvkjdlsfhj]
 * ranges
 * [0-9a=zA-Z] &larr; notice fat-finger:  a, =, and z not a thru z
 * include dash: [-0-9] or [a-j-]
 * complement
 * [^]
 * include caret: [x^]
 * exclude caret: [^x^]
 * quantifiers
 * color colour &rarr; colou?r
 * helllo hey hello &rarr; hel*
 * greedy/lazy
 * stuff
 * alternator
 * subexpressions/grouping
 * ay/bee/see/dee/ee/eff &rarr;  :s?\(.*\)/\(.*\)?\2/\1?
 * examples
 * ps aux | grep ss[h]
 * aggressively commented config
 * grep ^[^#]  vs  grep -v ^[#]
 * regex crossword
 * http://regexcrossword.com
 * regex crossword
 * http://regexcrossword.com