Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php preg_match special characters

  $string="sadw$"
  if(preg_match("/[[^'£$%^&*()}{@:'#~?><>,;@|-=-_+-¬`]]/", $string)){
   //this string contain atleast one of these [^'£$%^&*()}{@:'#~?><>,;@|-=-_+-¬`] characters
  }
Comment

PREVIOUS NEXT
Code Example
Php :: php set selected option 
Php :: laravel generate slug 
Php :: redirect back in codeigniter 
Php :: php time how long a function takes 
Php :: No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration 
Php :: re migrate laravel 
Php :: return error when duplicated laravel 
Php :: guzzle http try catch 
Php :: logout in laravel 8 
Php :: redirect all request to public folder laravel htaccess 
Php :: laravel session forget 
Php :: Error: Call to a member function addEagerConstraints() on null in file 
Php :: counting a string in php 
Php :: display exception in blade laravel 
Php :: laravel jetstream livewire 
Php :: nova resource title function 
Php :: yii2 htpp client form data 
Php :: php artisan serve a folder 
Php :: find string in text in laravel 
Php :: the token has been blacklisted laravel jwt 
Php :: laravel please provide a valid cache path 
Php :: redirect wordpress 
Php :: php var dump die 
Php :: oxygen upload font 
Php :: get user symfony 
Php :: php sleep 1 second 
Php :: PHP strrchr — Find the last occurrence of a character in a string 
Php :: laravel remove public from url 
Php :: terug tellende for loop php 
Php :: php check credit card expiration 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =