Skip to content

Instantly share code, notes, and snippets.

@nebjak
Created October 18, 2011 13:38
Show Gist options
  • Save nebjak/1295443 to your computer and use it in GitHub Desktop.
Save nebjak/1295443 to your computer and use it in GitHub Desktop.
Miff blog - RegEx
<?php
$s = 'miffmedia.com';
if(preg_match("/\./",$s)) echo 'Postoji znak .';
$s1 = 'miffmedia+com';
if(preg_match("/\+/",$s1)) echo 'Postoji znak + .';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment