Thread: Regex examples
View Single Post
Old 04-08-2012, 08:04 AM   #50
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: 1,489
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
First thanks to the three of you for your quick and efficient help.

Quote:
Originally Posted by mmat1 View Post
A last suggestion from my side, i notice that it will not work, if there are accented characters, so search should better look like this:

Code:
<p class="let">([A-Z])([^ ]{0,20}\s)(([^ ]{0,20}\s){3})
Thanks a lot, this time it's working!! And yes, I did not use \w because I needed to take care of accented characters, punctuation signs, apostroph and so on which can all be found in the first four words of French texts.

I will study it and check Perkin's measurements.

Have some of you any idea how to execute one after another, in automatic mode, several regex? (not related to each other like these two) Is there a tool that can do it?
roger64 is offline   Reply With Quote