Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. "string1", "string2"
  2.  
  3. /[{]s*[^{}]+s*[}]/
  4.  
  5. $matches = [];
  6. preg_match_all('/{s*([^}s]*)s*}/', $string, $matches);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement