http://www.perlmonks.org?node_id=481602


in reply to Re: Parse::RandGen::Regexp
in thread Parse::RandGen::Regexp

Your first suggestions are close to what I need but I don't want to have to escape characters. What other characters would I have to escape beside '\s'? This gets hard to manage.

So I still have the problem, how do I convert a string

(?smi)^STOR\s^\n{100}

OR

/^STOR\s^\n{100}/smi

into a regexp that the P::RG::R wil handle?