How can i match this string permission grant inspire @you @me @john like this match
Group 1: grant or deny
Group 2: anything character
Group 3: should match start with @ every character in match like @you @me you and this is splitted by splace
This is my try in regex ^permission\s(grant|deny)\s(.*)\s(.*)
this is my fiddle
Note: I'm using javascript, does this need lookbehinds or something else that can look around