preg_match_all('/(\d{4})/', $text, $matches);
Using above function we can extract exact 4 digit numbers from a given string.
How can extract the numbers that contains greater than 4 digits using regular expression..
Is there any way to specify the minimum length in regular expressions ?