use regex for checking expected values