regex – regular expressions

A regular expression (shortened as regex or regexp), sometimes referred to as a rational expression, is a sequence of characters that specifies a match pattern in text. Usually such patterns are used by string-searching algorithms for "find" or "find and replace" operations on strings, or for input validation.

  • See also regex101 for helpful testing out of regular expressions.

Some helpful regex

More to come...

Renaming files

  • Find everything from - and .epub
(?s)(?<=\ \-\ )(.*?)(?=\.epub)
  • Everything after numbers and before .epub
???
We use cookies only for WordPress functionality, and do not use third-party analytics or tracking.
Accept