scan add match support

match uses regexp