Re: Re: Translation Request--Altavista Babelfish can't do i t
| From: | Jason Wong | Date: | Mon, 29 Apr 2002 13:11:31 +0000 |
| Subject: | Re: Re: Translation Request--Altavista Babelfish can't do i t | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95143@lists.php.net to get a copy of this message | ||
On Monday 29 April 2002 20:52, Ford, Mike [LSS] wrote:
> > -----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!
Well the ereg is looking for strings beginning with # but then the whole if
expression is negated (!), so the statement "it is 'ok' if the string doesn't
start with '#'" is correct.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
When it comes to broken marriages most husbands will split the blame --
half his wife's fault, and half her mother's.
*/