Conversion from vb6 to vb.net

G

Guest

Hi everyone,

Can somebody tell me the equivalent vb.net code for the following vb6 code :
---------------------
pRegularExpression as RegExp

pRegularExpression.Pattern = xExpression
pRegularExpression.IgnoreCase = False
pRegularExpression.Global = False
 
K

Ken Tucker [MVP]

Hi,

This is how I would do it. There is no global option in the dot net
regex.

Dim pRegularExpression As New
System.Text.RegularExpressions.Regex(xExpression,
RegularExpressions.RegexOptions.IgnoreCase)



Ken
 
G

Guest

Hi,

Thanks for the help.

-Dushyant

Ken Tucker said:
Hi,

This is how I would do it. There is no global option in the dot net
regex.

Dim pRegularExpression As New
System.Text.RegularExpressions.Regex(xExpression,
RegularExpressions.RegexOptions.IgnoreCase)



Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top