0
Sou my question is about regular expression in Javascript.... Owk I need syntax to match character a-zA-Z
5 Antworten
+ 2
im not the js pro but this should work ;)
var s = "Please yes make my day!";
s.match(/[a-zA-Z]+/);
+ 1
[a-zA-Z]+
This should match any 1 or more alphabet characters.
Here's a cheatsheet:
https://www.debuggex.com/cheatsheet/regex/javascript
0
So do I need to write it this way /[a-zA-Z]+ /
0
@r4 why didn't you use test() instead of match
0
@r4 why didn't you use test() instead of match