Perhaps this will be useful: Building Regex Alternations Dynamically. If you have problems, see How do I post a question effectively? and SSCCE, and feel free to start a new thread.
In reply to Re^4: how to search for a string in a particular file?
by haukex
in thread how to search for a string in a particular file?
by tm86
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |