When actually testing this, I found that my initial solution was flawed in another way: the initial pipe needs to be escaped as well! Does any monk have an idea why that is necessary? Liz$tomatch = join '|', map {local $_ = $_; s#\|#\\|#s; $_} @results;
In reply to Re: Re^2: Creating regex from arrays (oops)
by liz
in thread Creating regex from arrays
by debiandude
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |