![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Oct 2014
Location: Warsaw, Poland
Device: Sony PRS-505
|
Regex problem: s&r adding space between emdash and first letter...
Hello guys and gals,
I am absolute newbie as it comes for regular expressions so kindly and humbly ask for help... Quite often the dialogues in epubs I own look like: "—Hello, mobileread" And it should look like: "— Hello, mobileread" to be more capable to read... After done some reading of the forum and so few tries and errors I've set such search: "—[\w]" And it does the trick, yet when it goes to replacing setting "— \1" not working... Sigil simply adds the string "— \1" to the epub, without fixing anything ![]() Thanks in advance for any tips and suggestions... Have nice weekend ![]() Witkacy |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You need to close [\w] in parenthesis, like this: "—([\w])"
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Curious problem with find/replace & regex | JoeBloe | Editor | 1 | 11-07-2014 04:45 AM |
Adding with Regex | thepauler | Library Management | 2 | 08-31-2014 02:25 PM |
Need help with regex for adding ebooks | myusernameis | Calibre | 2 | 02-14-2014 07:01 AM |
Adding books - regex help | tonyx3 | Library Management | 1 | 03-13-2013 08:21 AM |
Regex F&R problem? | Jabby | Sigil | 6 | 06-12-2012 04:18 AM |