Basic Syntax CrystalClear Syntax Before Reading Records

Matches( string, pattern )


This function uses regular expression syntax to match a string to a pattern. The pattern must be a valid regular expression pattern.

Note: This match operation does a complete match. It will not match, if the pattern only matches/represents a part of the string.

Usage:

Matches( string, pattern )

Parameters:

string database field containing a string or a text string
pattern a string which defines the regular expression pattern

Returns:

True, if string is a complete match to pattern.

Examples:

Matches ("Berlin", "B.rlin")   // Returns True. 
Matches ("Berlin", "B.*")   // Returns True.
Matches ("Berlin", "[Berlin]{6}")     // Returns True.
Matches ("Berlin", ".")    // Returns False, since it is only a partial match.

See also:


i-net software strives to provide accurate product documentation. Please give us your feedback using the form below.
NOTE: This form is for documentation feedback only. For technical assistance, please send an email to crystalclear@inetsoftware.de.

This page is: very poor very good
Comment: