Update: And if you want it generally work, you should pipe the items of the regex through quotemeta before building the regex.
In reply to Re: find partially matching lines in a file
by moritz
in thread find partially matching lines in a file
by sdatta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |