Re: regex

From: Date: Fri, 29 Sep 2000 07:37:55 +0000
Subject: Re: regex
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18014@lists.php.net to get a copy of this message
what string? a regular expression has to be crafted based on what you're looking for. Let us know what string you are trying to get and we can help. :) -jeremy brand _______________________________________________________________________ GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9 _ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more __ _ http://www.google.com/search?q=jeremy+brand __ On Fri, 29 Sep 2000, Michael Hall wrote: > Date: Fri, 29 Sep 2000 17:15:22 +0930 > From: Michael Hall <mulgaweb%mulga.com.au@octa4.net.au> > Reply-To: Michael Hall <mulgaweb@mulga.com.au> > To: php-general@lists.php.net > Subject: [PHP] regex > > Hi: > > Anyone know of a quick and simple regex formula that will find *any* > instance of a given set of characters anywhere in a string? I'm not too > flash with regex, and tried something like the following: > > ereg("[\/\\\%\&\*\|\!\<\>]", $string); > > This appeared to work sometimes, not others, and less as the set of > characters to search for got longer. I simply want to block outright certain > undesirable characters ... > > Thanks > Michael Hall > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#18014) next »