Hi, im very new to regex and have been trying to create an expression which creates validation for a path. Below are the rules I would like to include
- MUST begin and end with forward slash e.g /example/
-path name must be between 1-63 characters
- no upper case characters allowed
-no spaces
-can only contain the following symbols "-", ".", "_", "~"
This is what I currently have ^((?/)[a-z0-9]{1,63}/)$
Can someone please tell me how to include all rules above?
Thankyou!
- MUST begin and end with forward slash e.g /example/
-path name must be between 1-63 characters
- no upper case characters allowed
-no spaces
-can only contain the following symbols "-", ".", "_", "~"
This is what I currently have ^((?/)[a-z0-9]{1,63}/)$
Can someone please tell me how to include all rules above?
Thankyou!
Last edited: