Search
 
SCRIPT & CODE EXAMPLE
 

PHP

regex php password

^(?=P{Ll}*p{Ll})(?=P{Lu}*p{Lu})(?=P{N}*p{N})(?=[p{L}p{N}]*[^p{L}p{N}])[sS]{8,}$
Comment

regular expression for strong password in php

if(preg_match((?=^.{8,}$)((?=.*d)|(?=.*W+))(?![.
])(?=.*[A-Z])(?=.*[a-z]).*$, $_POST['password']):

echo 'matched';

else:

echo 'not matched';

endif;
Comment

PREVIOUS NEXT
Code Example
Php :: laravel raw query join many to many 
Php :: laravel eloquent get all 
Php :: phpoffice spreadsheet background color 
Php :: php array remove keys keep values 
Php :: php day of week full name 
Php :: how to get correct file or content mime type using/in php 
Php :: php post request 
Php :: laravel natural sort 
Php :: create request laravel command 
Php :: php sort hight to low 
Php :: resource controller artisan command 
Php :: php nginx file not found 
Php :: this page isn t working http error 500 laravel on server 
Php :: write test case in react native 
Php :: remove last character from string php 
Php :: check if array contains only unique values php 
Php :: how to check user already exists in php 
Php :: send email in php 
Php :: laravel get last id 
Php :: Day of Week Using carbon library 
Php :: php is int 
Php :: laravel check if item is in collection 
Php :: array pop php 
Php :: ERROR: Could not enable dependency mpm_prefork for php7.4, aborting 
Php :: grouping route in laravel 
Php :: laravel return validation errors 
Php :: array key value php 
Php :: php multi condition if 
Php :: php close unclosed HTML Tags 
Php :: how to print string plus variable in php 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =