Regular Expressions 101

Extract content of code which start with a curly bracket and ends with a curly bracket followed by closing parenthesis

Open Workspace
  • PCRE2 (PHP)
  • Match
0

Regular Expression

/
(?<=^\$translateProvider\.translations\('de', {)[\s\S]*(?=}\)$)
/

Description

answer demo for stack overflow question:

Extract content of code which start with a curly bracket and ends with a curly bracket followed by closing parenthesis

Submitted by Anonymous