Quote:
Originally Posted by Capricorn
</p>\s+<p class="calibre2">
I put that string into the find of sigil 0.4.2.
In replace neither \s or \1 worked.
|
\1 did not work because there was nothing that \1 goes back to.
\1 will use the first match found in parantheses, but there were no parantheses.
\s did not work because this is a placeholder for white spaces (e.g. blanks and tabs). You can't replace anything with \s since it is not a vaild character like the blank itself.
On the other hand it should have worked with congngo's example
</p>(\s)+<p class="calibre2">
and replace with \1 since in this case \1 represents the charatcer found by \s (note that this is NOT \s but a blank or a tab or whatever!)