Huh?  You better read that documentation page again.  You only need to
list the illegal symbols.  And what do you mean by length?

-Rasmus

On Mon, 1 Oct 2001, Tim Ballantine wrote:

> Is there anything which doesnt use length? And something like eregi, because
> it would be infeasible to list all of the symbols that a user could use, to
> compare a string by.
>
> Tim
>
> "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > See php.net/strcspn
> >
> > On Mon, 1 Oct 2001, Tim Ballantine wrote:
> >
> > > Hello,
> > >
> > > Could anyone tell me how to eregi a word, to see if it only contains
> either
> > > numbers, letters, the "_" and the "-", so that any other symbol with
> call it
> > > invalid. For example, theres the word "expressio_n" that will be valid,
> but
> > > the word "express%^$-n" will be invalid.
> > >
> > > Thankyou,
> > >
> > > Tim
> > >
> > >
> > >
> > >
> >
>
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to