regex - Find words does not end with a letter expression using regexp -


i trying find word ends 'k' letter , must come after these letters 'a,e,o'.

regex should find this:

'stack' 'kick' 'kiik' 'kimk' 'gesk' 

and should not find belows:

'book' 'beak' 'aiok' 

for gain use reguler expression :

(?![aeo]+k)^.*?$

. not work.

^.*(?<![aeo])k$ 

you can use words ending k.see demo.the lookbehind separate out words having aeo before last k.

https://regex101.com/r/cd5jk1/3


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -