View Single Post
Old 01-19-2012, 03:57 AM   #8
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
Quote:
Originally Posted by Capricorn View Post
</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!)

Last edited by WS64; 01-19-2012 at 04:01 AM.
WS64 is offline   Reply With Quote