No doubt I should know this regex point but ..

Jeremy Dillworth jwdillworth at
Thu Aug 14 17:30:57 CEST 2003

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

--- Jim Hefferon <jhefferon at> 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
> -- 

More information about the Python-list mailing list