> -----Original Message----- > From: Hugh Bothwell [mailto:[EMAIL PROTECTED]] > Sent: 27 April 2002 01:15 > > "Vins" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > if(!ereg("^#(.)*$", $buffer[$i])) > > { > > echo "ok"; > > } > > > > what does this mean?
[...] > Boiled down, it is 'ok' if the string > doesn't start with '#'. Um -- I'm no regex expert, but isn't ^ the "start of string" character? -- so this is looking for strings which *do* begin with a hash! Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php