Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-01-20 17:51
Flavor·PCRE2 (PHP)

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

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