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.
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)
but then i found that what i was really looking for was a simple
PHP wrapper for C's fnmatch() function.
Now the simple question is: how should i call it and where should it
live?
( ) as fnmatch() in ext/standard, as it is a file related function
after all
( ) as wildcard_match() in ext/standard
( ) as wildcard_match() in a extension of its own
( ) _____________________________________________
comments, suggestions, ideas?
--
Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de +49-711-99091-77
--
PHP Development 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]