Other Resources:
Negated decimal digit character class - \D
What is abbreviation of a negated character class of all decimal digits? Does it represents any characters except decimal digits?
How to write a regular expression using a character class abbreviation to capture letters from a Canadian postal code string: L3R 9Z7?
✍: FYIcenter.com
The predefined abbreviation of a negated character class of all decimal digits is \D, which is the same as [^0123456789], or [^0-9]. \D will match any characters except decimal digits.
The regular expression to capture letters from a Canadian postal code is:
(\D)
\D - matches any characters except decimal digits
2013-01-23, 0👍, 0💬
Popular Posts:
How to capture the MSN (Microsoft Network) bot entries from Web log file? Here are some Web log file...
All credit card numbers issued by JCB have 3 sets of numbers: JCB cards start with 2131 have 15 digi...
How to capture the Sogou web spider entries from Web log file? Here are some Web log file entries: 1...
All credit card numbers issued by Diners Club must start with 300 through 305, 36 or 38 and have 14 ...
All credit card numbers issued by Diners Club must start with 300 through 305, 36 or 38 and have 14 ...