Thread: Regex examples
View Single Post
Old 07-18-2017, 03:42 PM   #523
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,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
@Kevin

Thanks for your help.

After some trials, it seems I get good results this way:

Code:
([A-Z])([a-zé]+)\s([I|V|X]+)([\s.,?!]+|<sup>er</sup>)
Code:
\1\2\u00a0\3\4

Last edited by roger64; 07-18-2017 at 03:54 PM. Reason: Napoléon Ier
roger64 is offline   Reply With Quote