04-25-2014, 07:48 AM | #346 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Change * to *? and it will only catch until ‘bout.
Still, you don't want to miss any of those, you could also have: ‘em the cat sat on the mat ‘foo ‘bout’ My suggestion is running either of the regexes and replace every instance with something else (say ¬rsquo; or ¬lsquo;, literally) so you can be sure you have checked all of them and they don't stand in the way. Once there's nothing left, replace them back with ‘ and ’. |
04-26-2014, 11:59 AM | #347 | |
Zealot
Posts: 142
Karma: 669192
Join Date: Nov 2013
Device: Kindle 4.1.1 no touch
|
Quote:
|
|
04-26-2014, 01:44 PM | #348 | |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
’em the cat sat on the mat ‘foo ’bout’ |
|
04-26-2014, 03:58 PM | #349 | |
Connoisseur
Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
|
Thanks all,
I've since been building a search group in sigil with entries like these. Quote:
|
|
04-27-2014, 09:34 PM | #350 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
|
04-28-2014, 03:15 AM | #351 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
04-28-2014, 06:17 AM | #352 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I thought the double quotes were more US-style and single quotes more UK-style.
|
04-28-2014, 07:07 AM | #353 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
It is confusing because apostrophe is used in contractions, but is also used in quotes within quotes ie Bill said,"You know John said, 'Damn the torpedoes, full speed ahead.' and then walked away." It also depends on the time the book was written too. One of the worst things about English is that most of it is irregular and the rest is borrowed from other languages.
|
04-28-2014, 11:21 AM | #354 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
04-28-2014, 12:16 PM | #355 |
Zealot
Posts: 142
Karma: 669192
Join Date: Nov 2013
Device: Kindle 4.1.1 no touch
|
There are so many quotes one could use:
„German style“ „German Style ‚with quoted quotes‘ look like this“ »German Chevrons ›with quoted‹ quote« «Swiss Guillemets ‹with quoted› quote» « French guillemets ‹ with quoted › quote » I think there is more… |
04-29-2014, 10:28 AM | #356 |
Wizard
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Yes, please:
„German style” „German Style ‚with quoted quotes’ look like this” |
04-29-2014, 11:15 AM | #357 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
I had to take all into account in my programming and make it user selectable due to this. |
|
04-29-2014, 02:09 PM | #358 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
|
|
05-25-2014, 10:46 AM | #359 |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2014
Device: galaxy tab3 7''
|
Find and replace selective broken words - highlights last chapter word
First of all, I apologize for my English.
I have 2 problems that I would like to solve with regex: 1) Can I replace all the broken words (for example: hou-se), except for a list of words to ignore (for example: hang-up)? 2) How can I highlight only the last word of a paragraph? I tried with "\ s \ w +. </ p>" but unfortunately does not see special characters, such as "à" or "»" thanks Last edited by brunello; 05-25-2014 at 02:34 PM. |
05-27-2014, 06:11 PM | #360 | ||
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
Quote:
Quote:
Code:
(?<=\s)[^\s<]+(?=</p>) one or more of anything that is not a space or a < [^\s<]+ which is preceded by a space (?<=\s) and which is followed by a </p> (?=</p>) hope that helps! Last edited by mzmm; 05-27-2014 at 06:31 PM. |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Examples of Subgroups | emonti8384 | Lounge | 32 | 02-26-2011 06:00 PM |
Accessories Pen examples | Gunnerp245 | enTourage Archive | 15 | 02-21-2011 03:23 PM |
Stylesheet examples? | Skitzman69 | Sigil | 15 | 09-24-2010 08:24 PM |
Examples | kafkaesque1978 | iRiver Story | 1 | 07-26-2010 03:49 PM |
Looking for examples of typos in eBooks | Tonycole | General Discussions | 1 | 05-05-2010 04:23 AM |