Regex or Regexp, short for regular expressions, is a special string used to define search patterns, typically used on larger texts.
If you’re aware of wildcards, you can think of this as being a similar thing, but a lot more powerful. For example, with wildcards, you’d use *.log to match all the file names that end in the log extension.