Added example for namedCaptures
Moved unittests for namedCaptures outside the Regex struct