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
@"
(?<=^፻.+)\b(\w+)(?=.*፻$)፻?
"
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!
Substitution
፻$1
፻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!