app/regex: fix number of matches