# Colorer library regular expressions interface

Regular expressions are funny things and if needed they can be quite easily used in your program/plugin. You can use colorer regexps in the most native way - they come in C++ sources - as a standalone class. But then, if you use different languages or there's some other reason, you can always use them in pre-compiled DLL binary form.

The sources themselves are found in the colorer distribution (beginning with the "freecraze" version), and the DLL can be compiled in `icolorer` directory, which is also found in the colorer distribution. In case you're using the sources you've got to work with the `CRegExp` class and its methods, and if you're using the DLL you simply export caller functions for these methods.

It's good to mention my regexps are slightly incorrect by formal approach - it means they don't follow perl standards when applied to some complex situations. Plus they are not fully compatible with the latter in ways of syntax of some complex operators. But, all was made with speed and colorer in mind - so it pays when it comes to simplicity.

### Methods

Method | Description
--- | ---
CRegExp | Regexp object constructor and destructor.
isok | Latest expression compilation result.
geterror | Extended error information.
SetNoMoves | Allow/dissallow moving inside the target string.
SetBkTrace | Set references for \yN operator.
SetExpr | Expression compilation.
SetCodePage | Set transliteration table for texts in non-OEM codepage.
Parse | Parse regexp against target string.
Parse | Parse regexp against target string, with extended settings.

### Structures:

Structure | Description
--- | ---
SMatches | array with finite bracket matches

See also:
Addons