Use regex in getNameWithOwner