Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 1
    \$\begingroup\$ This works surprisingly well in PHP: regex101.com/r/kB5kA4/1 \$\endgroup\$ Commented Apr 1, 2015 at 14:47
  • 1
    \$\begingroup\$ @IsmaelMiguel Yes, I didn't use anything feature specific. The only reason I picked .NET is because Retina allows me to write regex-only programs without any overhead of calling something like preg_replace. \$\endgroup\$ Commented Apr 1, 2015 at 15:01
  • \$\begingroup\$ I'm aware of that. You've used it quite a lot before. If I'm correct, it was created by you. It was for the curious. And also, you now have a test-suite where you can test whatever changes come into this question (I predict many) \$\endgroup\$ Commented Apr 1, 2015 at 15:10
  • \$\begingroup\$ Nice! This regular expression even works with other programming languages (when slashes are escaped). \$\endgroup\$ Commented Apr 2, 2015 at 11:46
  • \$\begingroup\$ I used your regex technique to improve a third party library I work with: Dojo Toolkit \$\endgroup\$ Commented Aug 9, 2018 at 13:57