Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Regex and tilde

$
0
0

Greetings,

  Came across this the today which I cannot explain:

'xx,yy' -notmatch '^[~0-9a-zA-Z _\(\)-]+$' returns true whereas

'xx,yy' -notmatch '^[0-9a-zA-Z _\(\)-~]+$' returns false

All I did was move the tilde from the beginning to the end of the list of chars.

Cheers

David Z


Viewing all articles
Browse latest Browse all 15028


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