Skip to content Skip to sidebar Skip to footer

Javascript And Php Regex Validation

I am making an form on my website but I have an problem with 2 regexs. (I have an PHP regex and an JS regex because I read that javascript only is dangerous) First is in PHP $nam

Solution 1:

If you only want to accept letters, use /[^a-z]/i. You can use this regex in PHP and in JavaScript.


Post a Comment for "Javascript And Php Regex Validation"