To johngg: it seems your code does not work at all; even if rectified to work, it is not so efficient when regex engine is involved.
My suggestion is: sort (lexicographically) the lists first, then the search can be done in one whole pass through the two lists.
In reply to Re^2: My 'perldar' tells me there is a 'better' solution for this list operation
by an0
in thread My 'perldar' tells me there is a 'better' solution for this list operation
by OfficeLinebacker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |