0

Is there any library file for using regular expression in visual basic? I could not find anything please help.

2 Answers 2

1

In Visual Basic .NET (ie. Visual Studio.NET 2002 and later): .NET includes a regex engine accessed via types in the System.Text.RegularExpressions namespace with usage documented here.

In earlier (COM based) versions of Visual Basic (up to and including V6) there is a, somewhat more limited, regex engine in the Windows scripting runtime also documented on MSDN.

Sign up to request clarification or add additional context in comments.

4 Comments

if i want to do this in C then what should i do . please help
@insanity: In Standard C: look at third party regex libraries (there are a few). In C + COM you can use the scripting engine, but COM is hard work in C (C++ and something like ATL makes it enormously easier). Of course standard C++ includes regex as part of the library (vS2012 and VS2013 include a pre-standard version).
can u help me find regex libraries for c in windows. I did searched it in google but cant find it. please help me
@insanity The key to search is to know that there is a port of Perl 5's regex into a C library: http://www.pcre.org/.
1

Just add

using System.Text.RegularExpressions

at the top of your class

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.