mhearse has asked for the wisdom of the Perl Monks concerning the following question:
I like using json for config files. It's easy on the eyes. But now I have a problem. I'm trying to figure out how to escape forward slashes (or anything that needs escaping). So that they are correctly interpreted by perl. Can someone help?
{ "regex" : { ".*/home/members/index.htm.*" : { "404" : { "reporting" : "1000", "paging" : "2000" } } } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regex in json: escaping forward slash
by Mr. Muskrat (Canon) on Aug 22, 2012 at 21:23 UTC | |
by mhearse (Chaplain) on Aug 22, 2012 at 21:25 UTC | |
by davido (Cardinal) on Aug 22, 2012 at 21:38 UTC | |
by mhearse (Chaplain) on Aug 22, 2012 at 23:37 UTC | |
by davido (Cardinal) on Aug 22, 2012 at 23:42 UTC | |
by Mr. Muskrat (Canon) on Aug 22, 2012 at 21:37 UTC |
Back to
Seekers of Perl Wisdom