View Single Post
Old 04-06-2016, 02:31 AM   #1
senhal
Connoisseur
senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.
 
senhal's Avatar
 
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
Now I'd like to exclude other words (fa’, di’...), so I'm wondering if there is a way to exclude a sequence, something like:
Code:
(?!(\bpo|\bfa|\bdi))’\b
or
Code:
[^(<\bpo>|<\bfa>|<\bdi>)]’\b
(I know these examples don't work... but I hope I gave an idea about what I'm searching for)


Last edited by senhal; 04-06-2016 at 03:21 AM.
senhal is offline   Reply With Quote