![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 718
Karma: 1085610
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] I've tried Code:
,’ \1 |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,548
Karma: 19500001
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 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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
Thanks Jellby, that worked.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |