Generates regexps to match multiples of a given number