I need a regex that supports alphanumeric, hyphen, hyphen-space-hyphen, + and ++.
For alphanumeric with hyphens, space and plus, I can give something like /^[a-zA-Z0-9- +]*$/
. Can I use +{0,2}
inside a square bracket?
Someone please help me fill in the required regexp.
source
to share