2010-12-20から1日間の記事一覧
Pythonでワイルドカードマッチングしたい!そんなあなたはfnmatchを使いましょう。 >>> fnmatch.fnmatch('http://www.google.com/', 'http://*/*') True >>> fnmatch.fnmatch('http://www.google.com/foo/baz/bar', 'http://*.google.com/foo*bar') True >>>…
Pythonでワイルドカードマッチングしたい!そんなあなたはfnmatchを使いましょう。 >>> fnmatch.fnmatch('http://www.google.com/', 'http://*/*') True >>> fnmatch.fnmatch('http://www.google.com/foo/baz/bar', 'http://*.google.com/foo*bar') True >>>…