Add handling of 3 regular expression capture groups