Is there any library file for using regular expression in visual basic? I could not find anything please help.
2 Answers
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.
4 Comments
insanity
if i want to do this in C then what should i do . please help
Richard
@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).
insanity
can u help me find regex libraries for c in windows. I did searched it in google but cant find it. please help me
Richard
@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/.