Category

String Functions

Description

Determine whether a string matches a pattern

Syntax

Match(string, pattern)

Parameters

string - a literal string enclosed in either double or single quotes ("string" or 'string') or a string function

pattern - a string (or function) defining the pattern to check the string against

Notes

The pattern can simply be another string, in which case this is equivalent to "string1 == string2".

The match pattern syntax is the old DOS file wildcards: ? matches any single character, and * matches zero or more characters.

Examples

Match("this is a test", "*test") is true (will return 1)

Match("this is a test", "test*") is false (will return 0)

 

 

 

 

 

Copyright © 2020-2021 Systematic Solutions, LLC