string - How to match files end not with regex -


i trying filter files not ending with, instance mp3 or wv.
have tried use ^.*(?<![mp3|wv])$ expression doesn't work.
please create valid expression.

you can use negative lookahead instead.

^(?!.*(?:mp3|wv)$).* 

Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -