I am writing a regex to satisfy the following conditions
no capital letters,
no spaces, no underscores,
umlauts or special characters and no multiple slashes.
I have implemented this /[^a-z\/{1}\s]/g but still it allows more than one slash. Any idea what I am missing .
if(value.match(/[^a-z\/{1}\s]/g) ){
console.log(invalid)
}
- these values should fail to pass a test
SHOULDNOTMATCH
some_
über
ässs
schleißheim
some?sd
some/7asa+
some one
shouldnotmatche//
dont'allow
/home//some/where/
- These values should pass a test
home
page
thisshouldpass
someothertext