added regex capability