![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 83
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 03: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: 83
Karma: 25684
Join Date: Sep 2014
Device: Kindle NT
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
SEQUENCE 77 | Darbarian | Self-Promotions by Authors and Publishers | 9 | 02-10-2013 05:03 PM |
Malformed byte sequence: Invalid byte 2 of 3-byte UTF-8 sequence. Check encoding | digireads | ePub | 3 | 04-26-2011 03:07 AM |
Series sequence? | Toxaris | Sony Reader | 9 | 04-09-2010 07:36 PM |
Series sequence? | Toxaris | Calibre | 5 | 04-09-2010 07:04 PM |
PRS-300 Author sequence | denmarks | Sony Reader | 1 | 10-05-2009 11:49 PM |