use regex for name matching.