Quantcast
Channel: Regex for string not ending with given suffix - Stack Overflow
Viewing all articles
Browse latest Browse all 10

Answer by FiveO for Regex for string not ending with given suffix

$
0
0

To search for files not ending with ".tmp" we use the following regex:

^(?!.*[.]tmp$).*$

Tested with the Regex Tester gives following result:

enter image description here


Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>