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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -