albert wrote:
> which is the most fast solution for know if after first number there is
> a space?
Pattern matching: <
http://php.net/preg_match>
If the function returns 0 for the proper pattern, there either is no number
or there is no number followed by space.
If it returns 1 then, there is a number followed by space.
For the first number, all preceding characters (in the line) must be non-
digits. That can either be addressed with a negating *character class* (see
the corresponding section in the PHP manual) or with negative *lookbehind*
(see the section “Assertions”).
--
PointedEars
Zend Certified PHP Engineer
Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.