Skip to content

Instantly share code, notes, and snippets.

@mrclay
Last active December 14, 2015 02:49
Show Gist options
  • Select an option

  • Save mrclay/5016415 to your computer and use it in GitHub Desktop.

Select an option

Save mrclay/5016415 to your computer and use it in GitHub Desktop.
<?php
/**
* This has been moved to a GitHub project:
*
* @link https://github.com/mrclay/elgg-url-sniffer
*/
@mrclay
Copy link
Author

mrclay commented Oct 24, 2015

The regex tester is not PHP. In PHP the literal, '\\' represents the string \. And in PHP's PCRE patterns, an escape is actually needed before :. There may be a bug, but that's not it.

@mrclay
Copy link
Author

mrclay commented Oct 24, 2015

This class should go in its own project...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment