Codebox Software

RegEx DLL

RegEx.DLL provides some much needed regular-expression handling for VB programmers. The 'clsRegEx' class implements all the common UNIX wildcard characters allowing sophisticated string comparisons and search-and-replace operations to be performed.

Round brackets can be used to apply multipliers, such as '*' or '+', to groups of characters:

Square brackets can be used to specify possible values for a single character. A hyphen can be used in this context to represent a range of characters. If the first character within the brackets is a '^' then the range is exclusive rather than inclusive (ie. the expression matches any single character not shown):

A '\' symbol negates the special meaning of the following character. Only valid if it precedes one of *+?\{([])}.

The download includes VB code samples demonstrating how to use the library.

This library is still in beta test - it works well for short expressions, but due to the recursive nature of the code longer strings can take a while.