i have a html form. I want input area only allowed characters, for string. For example. A-Z All character a-z All Character 0/9 All Numbers And only +-._() This characters.
Asked
Active
Viewed 24 times
-2
-
Looks like you are looking to create a regex, but do not know where to get started. Please check [Reference - What does this regex mean](https://stackoverflow.com/questions/22937618) resource, it has plenty of hints. Also, refer to [Learning Regular Expressions](https://stackoverflow.com/questions/4736) post for some basic regex info. Once you get some expression ready and still have issues with the solution, please edit the question with the latest details and we'll be glad to help you fix the problem. – Wiktor Stribiżew Sep 05 '20 at 20:27
-
Questions that ask ["Give me a regex that does X"](https://meta.stackoverflow.com/q/285733) with no attempt are off topic on Stack Overflow. Also, see [Why is “Can someone help me?” not an actual question?](https://meta.stackoverflow.com/questions/284236) – Wiktor Stribiżew Sep 05 '20 at 20:27
1 Answers
-2
You can use pattern in html input to limit authorized characters : pattern input html5
Olivier MM
- 39
- 6
-
Thanks for your help. Bu that only HTML check codes. I must this checks for PHP :) – sc2525 Sep 05 '20 at 21:08