I'm having trouble detecting whitespaces in strings.
Set up this test:
echo "<br>exampl e 1:".intval(ereg i("^\s","testst ring"));
echo "<br>exampl e 2:".intval(ereg i("^\s","test string"));
Both resulting in 0 (zero)
also tried [:space:] and [:blank:] without result
Who can help this regular newbie expressing himself ?
Set up this test:
echo "<br>exampl e 1:".intval(ereg i("^\s","testst ring"));
echo "<br>exampl e 2:".intval(ereg i("^\s","test string"));
Both resulting in 0 (zero)
also tried [:space:] and [:blank:] without result
Who can help this regular newbie expressing himself ?
Comment