KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to validate input: valid variants are either number or empty string. What is the correspondent regular expression? String pattern = "\d+|<what shoudl be here?>"; UPD: dont suggest "\d*" please, I'm just curious how to tell "empty string" in regexp.
Tags (comma-separated)
Save Edits
Cancel