osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Spread a statement over various lines


Manfred Lotz wrote:

>> Not related to your question, but:
>> You seem to try to convert a Windows wildcard pattern to a regex
>> pattern.
> 
> No, I'm on Linux.
> 
> Shortly, after I had posted the question I discovered fnmatch() in the
> standard library, and I changed my code accordingly.

I would have pointed to fnmatch, but I didn't recognize the '%' that you 
used instead of the usual '?', and fnmatch doesn't either, I think.

Where does '%' come from?