Add another possible bug.   If, for example, $first contains 'pat' and $second contains 'pattern' then $first will always match first.
In reply to Re^3: out of two strings which occurs first in a text
by jwkrahn
in thread out of two strings which occurs first in a text
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |