Guest User

Untitled

a guest
Feb 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. $subject = "a+b";
  2. $pattern = '(([a]{1}+[b]{1})?([ab]{1}+[ba]{1}))';
  3. preg_match($pattern, $subject, $matches);
  4. print_r($matches);
Add Comment
Please, Sign In to add comment