text and other languages It’s a mini language of its own, with syntax rules Regular Expressions are a power tool for solving text related problems Thursday, January 26, 2012
grep/egrep filters its input based on regular expressions more/less/most search uses regular expressions vi/vim search and replace use regular expressions Thursday, January 26, 2012
use any character sequence inside the squares [012], [abc], [aAbBcZ] Can use ranges inside the squares [0-9], [a-z], [a-zA-Z], [0-9ab] Can use not [^abc], [^0-9] Thursday, January 26, 2012
{0,} + means match one or more times - {1,} ? means match zero or one time - {0,1} {n,m} means match at least n but no more than m times {n} means match exactly n times Thursday, January 26, 2012
on adding matches to the quantified element as long as possible If a match failure occurs later on, the engine will backtrack Thursday, January 26, 2012