[Python-ideas] Proposed convenience functions for re module

Steven D'Aprano steve at pearwood.info
Wed Jul 22 13:58:42 CEST 2009


On Wed, 22 Jul 2009 06:02:54 pm Ron Adam wrote:
> One of the needs I've run across is to enable the program user
> (possibly a non-programmer) to do logical searches on data.
>
> It would be nice if the search patterns specified by the program user
> could be used directly by the functions.  Search functions of this
> type would take patterns that are more like what you would use for
> google or yahoo searches instead of the more complex language re
> requires.

I'm not sure if I understand this correctly. Perhaps you could give an 
example or two?

Also, please don't overload my simple little proposal with a multitude 
of new functionality. My proposal is only meant to be a lightweight 
convenience function. Additional functionality probably belongs as a 
different function, maybe even a different module.


-- 
Steven D'Aprano



More information about the Python-ideas mailing list