added regex matching
added regex matching