"len" <[EMAIL PROTECTED]> wrote:
>I have the following statement and it works fine;
>
> list1 = glob.glob('*.dat')
that's a glob pattern, not a regular expression.
> however I now have an additional requirement the the string must begin
> with any form of "UNQ,Unq,unq,..."
list1 = glob.glob('*.dat')
list1 = [file for file in list1 if file.lower().startswith("unq")]
</F>
--
http://mail.python.org/mailman/listinfo/python-list
