{{tag>Function Function_List Text}} ====== MATCHES ====== ===== Description ===== Returns 'Yes' if the specified string matches the specified regular expression ===== Syntax ===== ''MATCHES (text, regex)'' Cannot be used in the condition of a [[:ref:a_f:a:find|FIND]] action. ===== Parameters ===== Attribute of the Plain Text type or string constant or calculation producing text and a regular expression ===== Returns ===== **Yes/No**: 'Yes' if the text matches the regular expression. ===== Example ===== IF MATCHES (Customer.PhoneNo, '[0-9]') = 'No' THEN ... ===== Related ===== [[ref:a_f:f:af:replace_pattern|REPLACE_PATTERN]], [[ref:a_f:f:af:replace_pattern2|REPLACE_PATTERN2]], [[ref:a_f:f:af:index_of|INDEX_OF]], [[ref:a_f:f:af:exact|EXACT]]