|
|
#1 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82
Karma: 25684
Join Date: Sep 2014
Device: Kindle NT
|
Regex: exclude sequence
Hi, I'm using this regex to find all words ending with apostrophe, excluding the word po’.
Code:
(([^\s]..)|([^p].)|(.[^o]))’\b Code:
(?!(\bpo|\bfa|\bdi))’\b Code:
[^(<\bpo>|<\bfa>|<\bdi>)]’\b
Last edited by senhal; 04-06-2016 at 04:21 AM. |
|
|
|
|
|
#2 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
The negative lookahead is a "zero-width assertion" -- it still needs something else to actually match a string.
See here for an excellent explanation: https://stackoverflow.com/questions/.../406408#406408 |
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82
Karma: 25684
Join Date: Sep 2014
Device: Kindle NT
|
Quote:
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SEQUENCE 77 | Darbarian | Self-Promotions by Authors and Publishers | 9 | 02-10-2013 06:03 PM |
| Malformed byte sequence: Invalid byte 2 of 3-byte UTF-8 sequence. Check encoding | digireads | ePub | 3 | 04-26-2011 04:07 AM |
| Series sequence? | Toxaris | Sony Reader | 9 | 04-09-2010 08:36 PM |
| Series sequence? | Toxaris | Calibre | 5 | 04-09-2010 08:04 PM |
| PRS-300 Author sequence | denmarks | Sony Reader | 1 | 10-06-2009 12:49 AM |