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
/
.*?(UI element (\d+)).+?(?=(UI element \d+)|$)
/
gu
Input 1
some text before UI element 9 of group 1 of scroll area 2 of splitter group 2 of splitter group 1 of group 2 of group 2 of window Track_v01 - LPX_Template_v07 - Tracks of application process Logic Pro X, UI element 9 of group 1 of scroll area 2 of splitter group 2 of splitter group 1 of group 2 of group 2 of window Track_v01 - LPX_Template_v07 - Tracks of application process Logic Pro X, UI element 9 of group 1 of scroll area 2 of splitter group 2 of splitter group 1 of group 2 of group 2 of window Track_v01 - LPX_Template_v07 - Tracks of application process Logic Pro X,,,,,,, UI element 16 of group 1 of scroll area 2 of splitter group 2 of splitter group 1 of group 2 of group 2 of window Track_v01 - LPX_Template_v07 - Tracks of application process Logic Pro X, UI element 17 of group 1 of scroll area 2 of splitter group 2 of splitter group 1 of group 2 of group 2 of window Track_v01 - LPX_Template_v07 - Tracks of application process Logic Pro X, UI element 17 of group 1 of scroll area
Extraction
some text before UI element 9 of group 1 of scroll area 2 of splitter group 2 of splitter group 1 of group 2 of group 2 of window Track_v01 - LPX_Template_v07 - Tracks of application process Logic Pro X, UI element 9 of group 1 of scroll area 2 of splitter group 2 of splitter group 1 of group 2 of group 2 of window Track_v01 - LPX_Template_v07 - Tracks of application process Logic Pro X, UI element 9 of group 1 of scroll area 2 of splitter group 2 of splitter group 1 of group 2 of group 2 of window Track_v01 - LPX_Template_v07 - Tracks of application process Logic Pro X,,,,,,, UI element 16 of group 1 of scroll area 2 of splitter group 2 of splitter group 1 of group 2 of group 2 of window Track_v01 - LPX_Template_v07 - Tracks of application process Logic Pro X, UI element 17 of group 1 of scroll area 2 of splitter group 2 of splitter group 1 of group 2 of group 2 of window Track_v01 - LPX_Template_v07 - Tracks of application process Logic Pro X, UI element 17 of group 1 of scroll area