• Returns { regex: RegExp; test: (text: string) => boolean }