

            match (2) --- match pattern anywhere on a line           05/29/82


            _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

                 integer function match (lin, pat)
                 character lin (ARB), pat (MAXPAT)

                 Library: vswtlb (standard Subsystem library)


            _F_u_n_c_t_i_o_n

                 '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 Subsystem encoded regular
                 expression.   'Pat'  can be generated most conveniently by a
                 call to the routine 'makpat'.


            _I_m_p_l_e_m_e_n_t_a_t_i_o_n

                 '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.


            _C_a_l_l_s

                 amatch


            _B_u_g_s

                 Not exactly blindingly fast.


            _S_e_e _A_l_s_o

                 amatch (2), makpat (2), maksub (2), catsub  (2),  find  (1),
                 change  (1),  ed  (1),  se (1), _I_n_t_r_o_d_u_c_t_i_o_n _t_o _t_h_e _S_o_f_t_w_a_r_e
                 _T_o_o_l_s _T_e_x_t _E_d_i_t_o_r, _S_o_f_t_w_a_r_e _T_o_o_l_s















            match (2)                     - 1 -                     match (2)


