Hi, i need to replace
...los jdu<sup>1</sup>
...jhs<sup>2</sup>
.
.
.
...<sup>...jgas<sup>525</sup>
with
...los jdu<FN>1</FN>
...jhs<FN>2</FN>
.
.
.
...<sup>...jgas<FN>525</FN>
I have <sup> and </sup> that i dont have to replace only replace the ones with the format <sup>number</sup>
Thanks
regular expression help
Moderators: AmigoJack, bbadmin, helios, MudGuard
You need to perform the following search and replace:
Find:
The round brackets allow you to refer to the found number between the angle brackets when creating the replacement expression.
Find:
Replace:<sup>([0-9]*)</sup>
With regular expression enabled and using POSIX regular expression syntax.<FN>\1</FN>
The round brackets allow you to refer to the found number between the angle brackets when creating the replacement expression.
-
juanpgadea
- Posts: 10
- Joined: Mon Jun 12, 2006 12:11 pm
You need to modify the search expression to include a space repeated zero or more times.
find
Using the previous replacement expression this will strip out any spaces after numbers i.e. <sup>2 </sup> will become <FN>2</FN>. If you want to keep the spaces then move the closing round bracket from after the first * to after the second *.
Hope this helps.
find
Please note there is a space after the ).<sup>([0-9]*) *</sup>
Using the previous replacement expression this will strip out any spaces after numbers i.e. <sup>2 </sup> will become <FN>2</FN>. If you want to keep the spaces then move the closing round bracket from after the first * to after the second *.
Hope this helps.