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
@"
(?:፻|(?<!፻|^)\G)(?=.*፻)([^\S\n]*)([^\s፻]+)(?:([^\S\n]*)፻)?
"
gm
Input 1
1
New
፻this test works፻ ፻this test will now work፻ ፻simple፻ this is an ፻ extra far more challenging ፻ case with more ፻ than just one match ፻ and even some ፻interleaved whitespace፻, behold!
Extraction
፻this test works፻ ፻this test will now work፻ ፻simple፻ this is an ፻ extra far more challenging ፻ case with more ፻ than just one match ፻ and even some ፻interleaved whitespace፻, behold!