| Home » Categories » PHP » REGEX | ||||
PHP preg_match - only allow alphanumeric strings and - _ characters |
||||
|
Article Number: 27 | Rating: Unrated | Last Updated: Thu, Sep 17, 2020 at 7:12 AM
|
||||
if(preg_match('/[^a-z\s\d]/i', $line)) {
Reference: https://stackoverflow.com/questions/7753365/php-preg-match-only-allow-alphanumeric-strings-and-characters/46413055 |
||||
|
| ||||
Attachments
There are no attachments for this article.
| ||||
Comments ![]() There are no comments for this article. Be the first to post a comment. | ||||







Add Comment