A regular expression like /\s(foo|bar|baz)\s.*/
would match the following string:
football bartender bazooka baz to the end
^^^^^^^^^^^^^^^
Is it possible to make a Parsing Expression Grammar rules that would parse the string in a similar fashion, splitting it into a Head and Tail?
Result <- Head Tail
football bartender bazooka baz to the end
Head | Tail