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?

After successive refinements, this looks better indeed. I will try this to morrow.

I go straight from odt to EPUB. I just tweak the EPUB a little after converting, but most of the work is done without touching directly any html file.

I am a Linux user, but I see now which kind of tool can do it. My idea was to add to our existing EPUB converting program a kind of editable super macro (the user could insert or modify any Regex inside). But, if the user needs Power Grep to use it, it would be a self-defeating purpose. On the other hand, if Power Grep can help me prepare this kind of super macro which later could be used without it, as a kind of program, yes it would be worthwhile.

Powergrep looks really powerful at first glance, at second glance I saw the price ...

So I may mention the command-line oriented unix-tools sed or awk, which are available for windows as well. With awk you can do nearly anything, but you'll have to build some skills first...

I agree, need to learn more regex fu. I haven't used PowerGrep for ages, and must have been demo, didn't realise it was that dear. My toolbar and smilies aren't working, had to add < b > tags myself, was working earlier though.

I agree, need to learn more regex fu. I haven't used PowerGrep for ages, and must have been demo, didn't realise it was that dear. My toolbar and smilies aren't working, had to add < b > tags myself, was working earlier though.

Uhm, did I state correctly what i meant ? "Building skills" is meant in order going to use "awk". That has nothing to do with regex, it's just the art of tricky skript-programming. With awk, you can have a html as input and get a list of primes as output (each word replaced by a prime in order).
And it was not stated in any context of your skills, if it was understood this way i must apologize.

Uhm, did I state correctly what i meant ? "Building skills" is meant in order going to use "awk". That has nothing to do with regex, it's just the art of tricky skript-programming. With awk, you can have a html as input and get a list of primes as output (each word replaced by a prime in order).
And it was not stated in any context of your skills, if it was understood this way i must apologize.

No need for apology, half my fault at not reading it correctly.
Not having used awk I just thought it was another grep style prog using regex - again my fault.
(My brain is only half working at moment 'cause of medicaton - at least that's what I'm blaming it on - I think I've used today's lucidity quota up earlier, on the actual regex problem and css adjustment.)

I have a few documents in MS Word that I'm going to convert to ebooks. The documents have a lot of endnotes, and as usual, Word puts out a lot of junk when saved a html. I am very new to regex, and was wondering if I could get help. I want to search on: