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

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 09-11-2013, 06:37 AM   #1
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 714
Karma: 1085604
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
Replacing / with correct text

I've scanned some documents using ABBYY Finereader and I've since discovered that almost all of the ,' with a /.

I though this would be a good case for regex and for the find, I'm seeming to be successfull with:

Code:
[/]\s[a-z]
to locate the backslashes, but I'm struggling with what to put in as the replacement. I can't simply have it as ,' as my search is looking for all backslashes that precede a space and a lowercase letter.

I've tried

Code:
,’ \1
but that only seemed to work fine in EditPad Lite, not in Sigil as I've now converted it to an epub. So now it's an epub, I need a replace command that works there.
ghostyjack is offline   Reply With Quote
Old 09-11-2013, 07:56 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,043
Karma: 4347035
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I guess you'd have to create a group in the regex you can then refer to with \1:

Code:
[/]\s([a-z])
The parentheses mean that whatever is found inside will be equivalent to \1 (or \2, \3, etc if you have more groups).

The exact syntax may vary between different regex dialects. In vim, for instance, you'd have to escape the parentheses: [/]\s\([a-z]\) Check whatever editor you are using.
Jellby is offline   Reply With Quote
Old 09-11-2013, 10:35 AM   #3
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 714
Karma: 1085604
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
Thanks Jellby, that worked.
ghostyjack 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
help with correct formatting mario932 Conversion 1 01-05-2013 09:17 PM
Your records are correct Tom93 Introduce Yourself 2 01-03-2012 11:58 PM
Replacing code without replacing text? ElMiko Sigil 6 11-30-2011 08:14 PM
Is this e-pub correct? silviolorusso ePub 12 06-08-2011 03:52 PM
PRS-600 Using the correct AC chargers mapabl Sony Reader 6 03-07-2010 02:35 PM


All times are GMT -4. The time now is 06:46 AM.


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