I'm using a regex to validate a form input. So basically a user can input "SELECT some_name of select_match".
So far I have the regex: \bSELECT\b \bof select_match\b
The last part is the middle part, which I think should be [a-zA-Z] but I'm not sure how to place it in the middle. I've read multiple pages but can't get it to work.
Also preferably I'd like the regex to ignore spaces between "SELECT" and of "select_match". Meaning that SELECT blabla of select_match and SELECT blabla of select_match would both be validated as correct.
Can anyone tell me how to do this? Thank you.
/^SELECT\s+\w+\s+of\s+select_match$/^SELECT\s+\w+\s+of\s+select_match$is working well. But you are not going to use it like it, you will use it asng-pattern="/^SELECT\s+\w+\s+of\s+select_match$/".