Re: Parse a string into a regex?

2017-05-12 Thread Lloyd Fournier
Patrick's answer of <$regex-interpolation> is the one I'd use. Although it checks a few possibly malicious things it doesn't catch everything: https://rt.perl.org/Public/Bug/Display.html?id=131079 On Fri, May 12, 2017 at 5:11 PM Andreas Mueller < andreas.muel...@biologie.uni-osnabrueck.de>

Re: Parse a string into a regex?

2017-05-11 Thread Sean McAfee
On Thu, May 11, 2017 at 4:01 PM, Timo Paulssen wrote: > The only way that comes to mind is to use EVAL, but that's not > golf-friendly at all. > > Perhaps you can find something sufficiently short based on .contains, > .index, .starts-with, .ends-with, and friedns? > I'm open