I'm trying to write up an expression that starts with a '#" and takes in the following types of paths and only takes in a character A-z/a-z and doesn't accept digits or special characters: Example valid paths:
#/
#/word/word
#/word
#/word/word/word
This is what I have currently:
#\/\D+|\/\D+
I have also tried:
#\/\D+|\s\/^[A-Za-z\s]*$
It filters 85% of the paths correctly but it still accepts paths with special characters as valid such as "#/word/word?test=word" "#/word/word=%"
I'm not quite sure what I am missing.