in reply to Re^2: Generalising string in pattern
in thread Generalising string in pattern

See perlre about \d, or about the [...] character class notation.

Also, you might want to use <code>...</code> tags around your code and data so it renders and downloads nicely.