Added all common use cases as pending examples and used string[/regexp/] instead of regexp.match since regexp.match will return nil when there are no matches and cause exception when referencing captures of a mismatch