Which of the following regular expression patterns represents a digit in Java?

Last Updated :
Discuss
Comments

Which of the following regular expression patterns represents a digit in Java?

\\D

\\w

\\W

\\d

Share your thoughts in the comments