<?php $pattern = '/\b(?: \d{6}[xX*]{2,9}\d{4} # BIN + masked + last4 | (?:\d{4}|[xX*]{4})(?:[ .-]?(?:\d{4}|[xX*]{4})){2,3} # blocs de 4 )\b/x'; $data = '497040726'; preg_match($pattern, $data, $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.