PreviousNextIndex

MATCHES operator

Compares a character expression to a pattern and evaluates to a TRUE value if the expression satisfies the pattern criteria.

Syntax

expression MATCHES pattern 

expression
pattern
Example

This procedure displays customer information for all Customers whose Address ends in St. The procedure does not use an index for the Customer search in r-match.p.

r-match.p
FOR EACH Customer NO-LOCK WHERE Customer.Address MATCHES("*St"): 
  DISPLAY Customer.Name Customer.Address Customer.City Customer.State 
    Customer.Country. 
END. 

Notes
See also

BEGINS operator


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex