Thread: Regex examples
View Single Post
Old 04-18-2014, 04:30 AM   #338
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hi

about no-break spaces and superscripts

1. - I have trouble finding the exclusion character on my keyboard: where is ^ ?

2. - I wish to insert a utf-8 no-break space (\u202F) instead of a normal space (\s) after a superscript like here:
</sup>\s
but not after this link </a></sup>\s
and not when there is followed by et or de </sup>\s(et\s|de\s)
for example not here: </sup> et la...

Is this correct? I tried it, it finds nothing...
search=[^</a>]</sup>\s[^(et\s|de\s)]
replace=</sup>\u202F

Last edited by roger64; 04-18-2014 at 04:41 AM.
roger64 is offline   Reply With Quote