use different class for regex