Reg-exp Play Pen
the quick brown fox jumps over the lazy dog
Pattern: (the needle)
Replace with:
target string: (the haystack)
the quick brown fox jumps over the lazy dog
Part 1: Boot Camp
/the/
/o../
/k.*x/
/chimps?/
/^...../
/^[a-z][a-z][0-9][0-9]? [0-9][a-z][a-z]$/i
/[^0-9a-f]//i
Part 2: Commando Regexps
/k.*o/
/k.*?o/
/\b[a-z]/
/x{3,}/
/\b[a-z]{4,}\b/
/(chalk|cheese)/
/ch/(alk|eese)/
/\b[a-z]+\b/($&)/
/([a-z]+) ([a-z]+)/$2 $1/
/([a-z])\1/($&)/
/<[^>]*>//
/^([^,]*), ?(.*)$/$2 $1/
redgreen.pl
[download]