Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 01-01-2015, 08:05 PM   #16
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,936
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by MerlinMama View Post
Thanks. I only had about 6 lines to do, so once aware of the problem it was fine. My regex is very similar, once I mark the section of text for it to apply to

Search: </p>\n([a-zA-Z])
Replace: </p>\n<p>\1

Might I ask why you had \s+ in yours? Whenever I try to use it, it never seems to work as I intended...I'm probably misunderstanding what it's for.
\s+ will match any of the: space, tab, newline
Sometimes I start the search with (?s) : treat as a single line

I don't worry about inserting a \n as I let 'Pretty' do that neat-it-up at the end
theducks is offline   Reply With Quote
Old 01-01-2015, 09:06 PM   #17
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 487
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Libra Colour
Thanks. I insert the \n, more from "I took it out I'll put it back" than anything else...also, used to Word and there you have to. Well, it's not \n, but same principle.
MerlinMama is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Generated TOC at beginning of PDF via command line alexandreaquiles Conversion 1 10-12-2014 03:24 AM
Regex to search at beginning of line kakkalla Sigil 30 06-03-2013 03:08 PM
Regex to insert word at beginning of a line macnab69 Library Management 1 05-20-2013 02:56 AM
Amazon Tags - Popular tags vs Unique tags. chrisanthropic Writers' Corner 6 09-19-2011 11:18 PM
Line indents using "<div>" tags HarryT Kindle Formats 11 04-29-2009 10:18 PM


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


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