Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-13-2017, 03:52 PM   #1
Michit1
Member
Michit1 began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Apr 2017
Device: Tolino
Sigil Find and replace

Hallo, my english is not so god, i am from German.

I want to delete tags in a specific position or on specific Tag or all. I have for example

<p class="MsoNormal">Karn der Taure wanderte nun schon einen Monat durch den
neuen Kontinent Pandaria. Mit 2,3 Metern war er von durchschnittlicher Größe
für sein Volk. Und als Paladin sah er es als seine Pflicht an das böse zu
bekämpfen wo immer es drohte. Deshalb war er nach Pandaria gekommen, aber das
war nur der offizielle Grund...</p>

Ho can i delete this Tags <p class="MsoNormal"> </p> togehter?

please help me. Thanks
Michit1 is offline   Reply With Quote
Advert
Old 04-13-2017, 04:21 PM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,529
Karma: 11635512
Join Date: Dec 2012
Location: Altus, Oklahoma today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
If all you are trying to do is to remove the 'class="MsoNormal">' then

search: <p class="MsoNormal">

replace with: <p>


tschuss,
Turtle91 is offline   Reply With Quote
Old 04-13-2017, 04:26 PM   #3
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,529
Karma: 11635512
Join Date: Dec 2012
Location: Altus, Oklahoma today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
If you are trying to save some of the searched text and re-use it then:

search: <p class="MsoNormal">(.*?)</p>
replace: <p>\1</p>
Turtle91 is offline   Reply With Quote
Old 04-13-2017, 04:27 PM   #4
Michit1
Member
Michit1 began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Apr 2017
Device: Tolino
I mean all delete all the Tags <p class="MsoNormal"> and thies tag to <p> and replace white nothing so the text is alone example

<p class="MsoNormal">Der Panda, seiner Kleidung nach ein Schamane, sah ihn kurz an und bedeutete sich ihm dann zu setzen.</p>

the red are delete and the text only blue example

Der Panda, seiner Kleidung nach ein Schamane, sah ihn kurz
an und bedeutete sich ihm dann zu setzen
.

thies option are not working

Last edited by Michit1; 04-13-2017 at 04:34 PM.
Michit1 is offline   Reply With Quote
Old 04-13-2017, 04:36 PM   #5
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,529
Karma: 11635512
Join Date: Dec 2012
Location: Altus, Oklahoma today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
OK,

search: <p class="MsoNormal">(.*?)</p>
replace: \1



edit: make sure you have REGEX mode selected in the search and replace options
Turtle91 is offline   Reply With Quote
Advert
Old 04-13-2017, 04:56 PM   #6
Michit1
Member
Michit1 began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Apr 2017
Device: Tolino
I have this so making but is not working on the bigger Text passage, by the small Text passage is he working why?


<p class="MsoNormal">Er ging hin und Stellte sich vor:</p> is workin on this

<p class="MsoNormal">„Hallo ich bin Karn, habt ihr etwas dagegen wenn ich euch
Gesellschaft leiste?"</p>
not working on this

is more Text or what the problem?
Michit1 is offline   Reply With Quote
Old 04-13-2017, 06:19 PM   #7
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,529
Karma: 11635512
Join Date: Dec 2012
Location: Altus, Oklahoma today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
If they are on multiple lines (different line numbers) you may need to select the "DotAll" option. If they are on the same line then I'm not sure why it would do that.
Turtle91 is offline   Reply With Quote
Old 04-13-2017, 06:23 PM   #8
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 17,485
Karma: 90388224
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Use my TagMechanic plugin (unless you're looking for some extra regex practice, of course).

Though I highly recommend caution. If the p tags you're removing are not within a div, then you're going to have invalid code. Text must be contained within a block-level element of some kind. Text can't have the body tag as it's immediate parent.

Last edited by DiapDealer; 04-13-2017 at 06:33 PM.
DiapDealer is offline   Reply With Quote
Old 04-13-2017, 06:24 PM   #9
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,529
Karma: 11635512
Join Date: Dec 2012
Location: Altus, Oklahoma today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
If you are just trying to delete all of those tags then you can perform multiple replaces.

search: <p class="MsoNormal">
replace: (nothing)

and

search: </p>
replace: (nothing)



However, if you are just trying to copy the text - without the tags - into another file/format then you could just switch Sigil to Book View and highlight copy/paste.
Turtle91 is offline   Reply With Quote
Old 04-14-2017, 03:59 AM   #10
Michit1
Member
Michit1 began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Apr 2017
Device: Tolino
Yes that was the error, multiple lines. Thanks you
Michit1 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil find and replace page numbers montalex Sigil 8 03-28-2017 09:51 PM
Sigil Wildcards/Regex Find/Replace Adman35 Sigil 7 08-16-2014 02:02 PM
Regex Help: Find page number & Replace+Remove 2x Line Breaks in Sigil Contre-jour Sigil 9 02-01-2013 11:47 AM
Sigil find/replace box LucyLu Sigil 2 05-28-2012 12:33 PM
Find/Replace Won't Find Rand Brittain Sigil 7 09-24-2011 05:35 AM


All times are GMT -4. The time now is 02:24 PM.


MobileRead.com is a privately owned, operated and funded community.