Skip to content

Instantly share code, notes, and snippets.

@stormbreakers
Created January 10, 2017 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stormbreakers/9b171c28bcfd234423b17050a587cc78 to your computer and use it in GitHub Desktop.
Save stormbreakers/9b171c28bcfd234423b17050a587cc78 to your computer and use it in GitHub Desktop.
$string = 'Maramures';
if ( preg_match("~\bMures\b~",$string) )
echo "matched";
else
echo "no match";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment