Can anyone help me create a regular expression that accepts alphanumeric (numbers and letters only) and dashes and white spaces.
It shouldn\'t accept consecutive das
/[\da-z]+[ -]?([\da-z][ -]?)*[\da-z]/i