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
.
Comments
Post a Comment