4 ms·
Have you considered doing a sort of regex best practices post? I'd be happy to promote such a thing or even help get it out. I think a lot of people want that s
by petercooper 10y ago
Have you considered doing a sort of regex best practices post? I'd be happy to promote such a thing or even help get it out. I think a lot of people want that sort of info.
- falsedan 10y agoIf I wrote a post, it would be: "read Ch. 12 of Perl Best Practices (2005)[0]". Yow, $30+ for the ebook! I wouldn't buy if just for that chapter… fortunately, the guidelines from the book have been codified as Perl::Critic, so If you don't mind missing out on the gently guiding text which accompanies each rule, you can browse the Perl::Critic::Policy::RegularExpressions[1] submodule docs. [0]: http://shop.oreilly.com/product/9780596001735.do http://shop.oreilly.com/product/9780596001735.do [1]: https://metacpan.org/pod/Perl::Critic::Policy::RegularExpressions::ProhibitComplexRegexes https://metacpan.org/pod/Perl::Critic::Policy::RegularExpres...