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
/
([\p{Latin}\d-']+\s*)(<a\s+href="[^>]+>)
/
gm
Input 1
mais entre le galopin et le voyou, il y a une différence<a href="../Text/notes.xhtml#note117" id="n117"><sup>117</sup></a></p>[:alpha:] mais entre le galopin et le voyou, il y a une peut-être<a href="../Text/notes.xhtml#note117" id="n117"><sup>117</sup></a></p> mais entre le galopin et le voyou, il y a une peut-être<a href="../Text/notes.xhtml#note117" id="n117"><sup>117</sup></a></p> mais entre le galopin et le voyou, il y a une l'obstacle<a href="../Text/notes.xhtml#note117" id="n117"><sup>117</sup></a></p>
Substitution
\2\1
mais entre le galopin et le voyou, il y a une différence<a href="../Text/notes.xhtml#note117" id="n117"><sup>117</sup></a></p>[:alpha:] mais entre le galopin et le voyou, il y a une peut-être<a href="../Text/notes.xhtml#note117" id="n117"><sup>117</sup></a></p> mais entre le galopin et le voyou, il y a une peut-être<a href="../Text/notes.xhtml#note117" id="n117"><sup>117</sup></a></p> mais entre le galopin et le voyou, il y a une l'obstacle<a href="../Text/notes.xhtml#note117" id="n117"><sup>117</sup></a></p>