Skip to content

Instantly share code, notes, and snippets.

@tbsmcd
Created June 11, 2012 16:49
Show Gist options
  • Save tbsmcd/2911182 to your computer and use it in GitHub Desktop.
Save tbsmcd/2911182 to your computer and use it in GitHub Desktop.
$ php -a
Interactive shell
php > echo preg_match('/.+@(docomo.ne.jp|ezweb.ne.jp)$/i', 'example@ docomo-ne.jp');
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment