KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What's a regular expression that will match a string only containing digits 0 through 9, a comma, and a semi-colon? I'm looking to use it in Java like so: word.matches("^[1-9,;]$") //Or something like that... I'm new to regular expressions.
Tags (comma-separated)
Save Edits
Cancel