Reputation: 1957
I need regex which contains only 0-9 numbers and the following characters: -,+,# (but not required)
How should this be?
Upvotes: 2
Views: 11620
Reputation: 12873
This should work with what you're looking for
/[0-9+#-]/
fixed as per comment below
Upvotes: 7