string: parse regex if supplied as string