Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
I don't use regular expression often. Let's say demo.
What is d- referring to?

What I have tried:

I can't find the it on MSDN.
Quantifiers in Regular Expressions
doesn't include minus(-).
Posted
Updated 11-May-17 21:49pm

Install and use Expresso[^] to find out.
 
Share this answer
 
Comments
Member 12658724 11-May-17 21:44pm    
Not sure why it works. Because \d-. matches 1234-.
I think that -? should work. The quantifer should place before digital number.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900