`:global` is linewise. There's no need to use searchcursor. Just iterate over each line and do a `.test()` on each line.