View Single Post
Old 08-17-2015, 09:19 AM   #6
MikeB1972
Gnu
MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.
 
Posts: 1,222
Karma: 15625359
Join Date: Jul 2009
Location: UK
Device: BeBook,JetBook Lite,PRS-300-350-505-650,+ran out of space to type
Quote:
Originally Posted by Nick_1964 View Post
I gonna try,thank you, but first I gonna try again to read what you wrote to understand what it does.. for sure it will help, but I want to know why to understand that Regex mode.. just for the look it replaces the classes, but what does the \1 means..
The dlct-007 is just one.. they start with 1 and end with.. I even don't know where..and everyone is different and used.. some containing larger txt for chapters so the lay-out would be gone anyway... I rather scan a book with abbyy then this mess..
To break it down
Search for this <span class="dlct-007">
then any combination of items (.*?)
ending with this </span>

the brackets around .*? say "cut the text for later use"

to use in the replace start with \ then the instance of saved text so as it's the first (and only) instance in your case use this for replace
\1

from the look of the sample you posted I would just try replacing 007 for now as it seems to be the default paragraph and won't affect the layout.
MikeB1972 is offline   Reply With Quote