Preg comes from perl. In perl regexp is left most greedy by default. Thats
why it matchs 7 digits not 4. To prevent greedy you use ? like \d.+? , which
should probably also work as \d{4,7}?P. -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
