Extract regular expression