added ability to handle 3 regular expression capture groups (and very contrived example)