. any character\d \D digit / not digit\w \W word char / not\s \S space / not[abc] any of a, b, c[^abc] none of them[a-z] range^ $ start / end\b word boundarya* a+ a? 0+, 1+, 0 or 1a{3} a{2,5} exact / rangea*? lazy (as few as possible)(abc) capture group(?:abc) group, no capture(?<name>x) named groupa|b a or b(?=x) followed by x(?!x) not followed by x(?<=x) preceded by x\1 back-reference