Thanks a lot for your kind help which saves me a lot of time.
Yes all the quotes are enclosed withing plain p tags, so this is working.
I had tried to figure out a one step process and miserably failed. Setting into place first all the opening div tags and then the closing div tags is indeed a safe way.
I keep Sigil for regex because I have there all my saved searches. Yours will join the others.