I\'m looking to use a ScanFilter to search for a set of bluetooth devices. I know the address of all these devices starts with 00:A0:50, and then the last 6 digits vary, so
Yes you can use regex & Pattern class
use following regex
to match string address
00:A0:50:([A-Fa-f0-9]{2}:){2}[A-Fa-f0-9]
I'm surprised it doesn't take an array as input, I would think that would be a more common use case than a single MAC address.
For now you can use loop(i.e for , while.. etc) and match the address