eregi whitespace detection problem
From: Frank (frankdegrauwe_at_hotmail.com)
Date: 10/30/04
- Next message: Steven Stern: "Re: Problem Writing To File"
- Previous message: Robert Onderdonk Terwilliger: "Re: libtidy"
- Next in thread: Andy Hassall: "Re: eregi whitespace detection problem"
- Reply: Andy Hassall: "Re: eregi whitespace detection problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 30 Oct 2004 15:53:11 +0200
I'm having trouble detecting whitespaces in strings.
Set up this test:
echo "<br>example 1:".intval(eregi("^\s","teststring"));
echo "<br>example 2:".intval(eregi("^\s","test string"));
Both resulting in 0 (zero)
also tried [:space:] and [:blank:] without result
Who can help this regular newbie expressing himself ?
- Next message: Steven Stern: "Re: Problem Writing To File"
- Previous message: Robert Onderdonk Terwilliger: "Re: libtidy"
- Next in thread: Andy Hassall: "Re: eregi whitespace detection problem"
- Reply: Andy Hassall: "Re: eregi whitespace detection problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|