Other Resources:
Decimal digit character class - \d
What is abbreviation of a character class of all decimal digits?
How to write a regular expression using a character class abbreviation to capture signed integer numbers in a text string like this: from -32768 to 32767?
✍: FYIcenter.com
The predefined abbreviation of a character class of all decimal digits is \d, which is the same as [0123456789], or [0-9].
The regular expression to capture signed integer numbers is:
(-?\d+)
-? - matches '-' or nothing
\d+ - matches 1 or more decimal digits
2013-01-23, 0👍, 0💬
Popular Posts:
How to capture the Soso Spider entries from Web log file? Here are some Web log file entries: 127.0....
How to capture the Baidu spider entries from Web log file? Here are some Web log file entries: 127.0...
How to capture the Soso Spider entries from Web log file? Here are some Web log file entries: 127.0....
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...