Use ([0-9]+) if you need to match more than one digit (only Arabic numbers!). Use (\d+) if you need all digits (all unicode digits).