RE: [PHP] Re: Translation Request--Altavista Babelfish can't do i t
| From: | Ford, Mike [LSS] | Date: | Mon, 29 Apr 2002 12:52:33 +0000 |
| Subject: | RE: [PHP] Re: Translation Request--Altavista Babelfish can't do i t | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95139@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Hugh Bothwell [mailto:hugh_bothwell@hotmail.com]
> Sent: 27 April 2002 01:15
>
> "Vins" <vins@webonline.co.za> wrote in message
> news:20020426235354.84297.qmail@pb1.pair.com...
> > 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: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211