Implement Regexp and NotRegexp