What are Regular Expressions good for?


  • Decide if a string is part of a larger string.
  • Validate the format of some value (string) (e.g. is it a decimal number?, is it a hex?)
  • Find if there are repetitions in a string.
  • Analyze a string and fetch parts of if given some loose description.
  • Cut up a string into parts.
  • Change parts of a string.