Re: [PHP-DEV] Simple wildcard matching

2001-09-13 Thread Andrei Zmievski
On Thu, 13 Sep 2001, Hartmut Holzgraefe wrote: > Alexander Wagner wrote: > > RTM ;-) > > http://php.net/preg_quote > > but then i'm the ereg sort of person ... quotemeta() -Andrei "I think it would be a good idea." -- Mahatma Gandhi, when asked what he thought of Western civilization... -- P

Re: [PHP-DEV] Simple wildcard matching

2001-09-13 Thread Hartmut Holzgraefe
Alexander Wagner wrote: > RTM ;-) > http://php.net/preg_quote but then i'm the ereg sort of person ... -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de +49-711-99091-77 -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: [PHP-DEV] Simple wildcard matching

2001-09-13 Thread Alexander Wagner
Hartmut Holzgraefe wrote: > First i wondered why there is no [p|e]reg function for encoding all > the special chars available in regular expressions (which i still do) RTM ;-) http://php.net/preg_quote regards Wagner -- Madness takes its toll. Please have exact change. -- PHP Development M

[PHP-DEV] Simple wildcard matching

2001-09-13 Thread Hartmut Holzgraefe
One of my customers requested a search form with simple wildcard matching yesterday (just the simple '*' and '?' style Windows users are used to) and i ended up using str_replace() and friends to convert these into regular expressions while preventing things like '.' from being interpreted.