In rails 4, I need to validate the alphanumeric field which can accept only dot(.), hyphen(-), slash(/) and space in between the characters.
I think this might help you:
This worked for all the examples you have provided
and rejected when I inserted a character like
? in the middle(
If you don't want multiline anchors then you can use it like this:
You can use this Rubular site to validate your Regex codes.