Skip to content

Instantly share code, notes, and snippets.

@morozVA
Created July 23, 2018 10:13
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 morozVA/ba452b26defb980323b8c751d49b7e95 to your computer and use it in GitHub Desktop.
Save morozVA/ba452b26defb980323b8c751d49b7e95 to your computer and use it in GitHub Desktop.
php regexp получить подстроку между скобками
preg_match('/\((.+)\)/', $str, $m);
echo $m[1];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment