Re: eregi

From: Date: Mon, 01 Oct 2001 22:33:52 +0000
Subject: Re: eregi
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-69499@lists.php.net to get a copy of this message
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" <rasmus@php.net> wrote in message news:Pine.LNX.4.33.0110011523560.1241-100000@rasmus.php.net... > 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 > > > > > > > > >

« previous php.general (#69499) next »