Create rule with capture as options
Pass regex as options to Grammar::createPattern
Add specs and fixtures