NAME $1 - SYNOPSIS DESCRIPTION IMPLEMENTATION SEE ALSO ARGUMENTS MODIFIED CALLS BUGS match pattern anywhere on a line integer function match (lin, pat) character lin (ARB), pat (MAXPAT) 'Match' attempts to find a match for a regular expression anywhere in a given line of text. The first argument contains the text line; the second contains the pattern to be matched. The function return is YES if the pattern was found anywhere in the line, NO otherwise. The pattern in 'pat' is a standard Software Tools encoded regular expression. 'Pat' can be generated most conveniently by a call to the routine 'makpat'. 'Match' calls 'amatch' at each position in 'lin', returning YES whenever 'amatch' indicates it found a match. If the test fails at all positions, 'match' returns NO. amatch Not exactly blindingly fast. amatch (2), makpat (2), maksub (2), catsub (2), find (1), change (1), ed (1), Software Tools