Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

preg_match in PHP

Any idea what this preg_match want to do ? Tks

if(!preg_match(“/^[4]{1,1}[0-9]{12,15}$/”,$value))
ASKER CERTIFIED SOLUTION
Avatar of Radek Baranowski
Radek Baranowski
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AXISHK
AXISHK

ASKER

^4\d{12,15}$

Does it mean starting with '4", following by 12 - 15 digit number ? Tks
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AXISHK

ASKER

Tks