COLOUR:STANDARD
POSITION:028,114
TEXT:00,find() starts searching a sequence from the first element onward.
TEXT:16,If there is more than one element with the search value present in the
TEXT:16,sequence, find() only returns the element number of the first one. If
TEXT:16,you want to continue searching after the first match, you will need to
TEXT:16,search a segment of the sequence, starting with the element following
TEXT:16,the first match. A demo program demonstrates the use of find() and also
TEXT:16,how to match more than one element using find().
TEXT:32,While find() finds a single element in a sequence, match() allows you to
TEXT:16,search a sequence for a specfic group of elements:
COLOUR:EUPHORIA
TEXT:32,   = match(  ,   )
COLOUR:POINTS
TEXT:00,ri         s1  s2
COLOUR:STANDARD
TEXT:32,match() searches sequence    in order to find a sequence of elements,
COLOUR:POINTS
TEXT:00,                          s2
COLOUR:STANDARD
TEXT:16,shown here as   . If successful, receiving variable    is assigned the
COLOUR:POINTS
TEXT:00,              s1                                    ri
COLOUR:STANDARD
TEXT:16,element number in    where the first element of    is located.
COLOUR:POINTS
TEXT:00,                  s2                            s1

