No doubt I should know this regex point but ..

Jeremy Dillworth jwdillworth at yahoo.com
Thu Aug 14 11:30:57 EDT 2003


I would suggest: "^$"
Which matches only empty strings.

--- Jim Hefferon <jhefferon at smcvt.edu> wrote:
> I am writing a class that walks through a file tree and (among other things)
> filters out which files it considers.  So I want to have 
>   __init__( .. ,filterExpression='..')
> For the default I want to filter nothing.  So I need a Python regular expression
> that never matches.  What is (the best) one?
> 
> Thanks for any help, 
> Jim
> -- 
> http://mail.python.org/mailman/listinfo/python-list






More information about the Python-list mailing list