'I want a regular expression that accepts arabic characters as well as arabic and english numbers
Im running a php code and I want to validate data using a regular expression that accepts arabic characters as well as arabic and english numbers , it should also accepts white spaces and new lines as well as arabic punctuations such as ، .
Solution 1:[1]
You can use the following code.
Add Arabic letters and allowed characters such as commas
preg_match('/^[ ? ? . ?-? 0-9 ????????????????????????????????????]+$/', $value);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | sina khaghani |
