in reply to I don't remember regex seeming this hard before

If you have the means, you may wish to check out Recipe 6.17 from The Perl Cookbook, 2nd Ed. I'm not typing out the code here in case it would be a copyright infringement.
  • Comment on Re: I don't remember regex seeming this hard before