RegEx Cheatsheet
/e/g, checking for e /e+/ , 1 or more e /ea*/g, 0 or more matches of a /ea?/g, a is optional /.at/g, match any char except newline /\.at/g, match . \w, match any word \s, match any space \S, dont match space \W, dont match word \w{4}, get words of 4 char \w{4,}, get words of 4 or more char \w{4,5}, get words of 4 to 5 char [fc]at, match any char starts with f or c and ends with at [a-z], any char small letters [A-Z], any char cap letters (t|T)he, saerch upper or lower case t followed by he , () is used for group (t|T){2,3}, match t or T in 2-3 range ^T, matching beginning of first statement with T char /^T/gm, multiple m will check beginning of ervy sentence \.$, check . at end of sentence (?<=[t|T]he)., look behind, find any char preceded by the/The (?<![t|T]he)., find any char NOT preceded by the/The .(?=at), look any char followed by at .(?!at), look any char NOT followed by at \d{10}, find any 10 digit number [ -], find space or -














