Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php check regular string

//You should use a regex filter with preg_match who returns 1 or 0

// this filter works for most of cases

/* use this regex */ preg_match("/^[a-z ,.'-]+$/i", your_string);

if you want more regex filters you can make yours on 'https://regex101.com/'
Comment

PREVIOUS NEXT
Code Example
Php :: strupper 
Php :: laravel increment column value in update query 
Php :: php explode by tab 
Php :: save error cakephp 2 
Php :: PHP auto refresh page 
Php :: 419 page expired in laravel 
Php :: laravel access controller method from another controller 
Php :: laravel get parameters from request 
Php :: isset submit in php 
Php :: laravel model quard 
Php :: bind multiple data in one id in php using php using for loop 
Php :: php datetime create 
Php :: create guid in php 
Php :: wordpress search code 
Php :: docker invalid port 80 
Php :: wordpress acf get checkbox options 
Php :: php parse json 
Php :: How to display data from MySQL database into HTML table using PHP 
Php :: a backwards counting forloop 
Php :: how to hide get parameters in url php 
Php :: console.log in php 
Php :: pathtophp in ubuntu lampp 
Php :: maximum execution time of 60 seconds exceeded laravel 8 
Php :: messed up pagination laravel 
Php :: get params from url php 
Php :: string to array in laravel 
Php :: Laravel 8 query builder, Inner Join Clause 
Php :: exclude methods in resource route laravel 
Php :: php mb_convert_case 
Php :: php datetime to timestamp 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =