IsRegularExpression()

Syntax

Result = IsRegularExpression(#RegularExpression)
Description
Tests if the given #RegularExpression number is a valid and correctly initialized, regular expression.

Parameters

#RegularExpression The regular expression to use.

Return value

Returns nonzero if #RegularExpression is a valid regular expression and zero otherwise.

Remarks

This function is bulletproof and can be used with any value. If the 'Result' is not zero then the object is valid and initialized, otherwise it will equal zero. This is the correct way to ensure a regular expression is ready to use.

See Also

CreateRegularExpression()

Supported OS

All

<- FreeRegularExpression() - RegularExpression Index - MatchRegularExpression() ->