I’m working to create a ruby regex that meets the following conditions:
Supported:
- A-Z, a-z, 0-9, dashes in the middle but never starting or ending in a dash.
- At least 5, no more than 500 characters
So far I have:
[0-9a-z]{5,500}
Any suggestions on how to update to meet the criteria above?
Thanks
This should work: