Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
(?s)\{(.*)\}
"
gm
Input 1
1
New
someOtherMessage{ class = "someClass"; sampleMessage{ someValue{ someText{ someParam = "value"; someSymbol = "another_symbol"; }; //someText }; //someValue }; //sampleMessage }; //someOtherMessage someOtherMessage2{ class = "someClass2"; sampleMessage2{ someValue2{ someText2{ someParam = "value2"; someSymbol = "another_symbol2"; }; //someText2 }; //someValue2 }; //sampleMessage2 }; //someOtherMessage2
Extraction
someOtherMessage{ class = "someClass"; sampleMessage{ someValue{ someText{ someParam = "value"; someSymbol = "another_symbol"; }; //someText }; //someValue }; //sampleMessage }; //someOtherMessage someOtherMessage2{ class = "someClass2"; sampleMessage2{ someValue2{ someText2{ someParam = "value2"; someSymbol = "another_symbol2"; }; //someText2 }; //someValue2 }; //sampleMessage2 }; //someOtherMessage2