Regex To Extract Characters Between Parentheses

A regular expression To match any characters between two parentheses (round brackets).

/(?<=\()(.*?)(?=\))/

Matches:

  • (regex)
  • (pattern)
  • (com)

Non-matches:

  • regex
  • [pattern]
  • ‘pattern’

See Also:

Regex Is Copied!