vb6 Like vs vb.net regex -


i need convert 1 vb6.0 project vb.net project. not familiar .net regular expressions. regular expression in vb.net equivalent vb "*_?#"

vb6 'like' syntax:

* = 0 or more characters _ = _ character ? = single character # = digit (0-9) 

.net regex equivalent:

.* = 0 or more characters  _ = _ character . = single character \d = single digit 

so regex string '.*_.\d'

edit: replaced [0-9] \d


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -