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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -