Added optional parameter to return captured text from set match