Regex

Control characters

Control Characters

Control sequence

Control Sequence

Examples

Metacharacters

  • [adb] Search for places where a or b or c exists

  • [^adb] Search for places where a or b or c DOES NOT exist

  • [a-f] Search for places where a,b,c,d,e,f exists

  • [A-z] Search for places where A-Z,a-z,and all ascii codes between Z-a

  • [9-0] Invalid. [0-9] is valid.

  • [.?] [.+] Dot plus quantifier = slow

Reference