In Perl regexps, "\d" matches any digit. Thus, "\w" in the default locale is just "[\da-zA-Z_]", and an integer is "[-+]?\d+".

"\D", however, stands for "[^\d]", or any non-digit character.

Log in or registerto write something here or to contact authors.