Re: Regular expression question
| From: | Philip Hallstrom | Date: | Fri, 30 Aug 2002 18:18:33 +0000 |
| Subject: | Re: Regular expression question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114680@lists.php.net to get a copy of this message | ||
$str = "jeD1GLal";
$str = ereg_replace("[1LIO0lio]", "", $str);
something like that...
On Fri, 30 Aug 2002, Jeff Lewis wrote:
> Is there a regular expression that will remove 1, L, I, O, 0 and the
> lowercase equivilants from a varialbe?
>
> I am not horribly well versed in regular expressions...so I'm basically
> asking someone to help :)
>
> Say I have a string like this "jeD1GLal"
>
> I want to remove any of the chracters that be confusing ...
>
> Jeff
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>