VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

RegularExpression

visual basic prof. edition  (1 Submission)   String Manipulation   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

This is a class module that performs regular expression searches in a string.

Inputs
Use the Init method to initialize to a specific regular expression (which will be precompiled), then use Match to check if a string contains such a substring.

Assumes
a) Put this code in a new .CLS file (NOT in a class module). 'b) The syntax for range (e.g. [a-z]) is the same as for operator Like. 'c) Not calling Init, or passing an empty pattern, will result in an "Illegal function call" error.

API Declarations

Rate RegularExpression (38(38 Vote))
RegularExpression.bas

RegularExpression Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters