per page, with , order by , clip by
Results of 1 - 2 of about 2 for reobj (0.001 sec.)
fnmatch --- Unix のファイル名パターンマッチ 11228
fnmatch --- Unix のファイル名パターンマッチ ソースコード: Lib/fnmatch.py このモジュールは Unix のシェル形式のワイルドカードに対応しています。これらは、 ( re モジュールでドキュメント化されている) 正規表現とは 異なります 。シェル形式のワイルド ... to be a str . 例: >>> import fnmatch , re >>> >>> regex = fnmatch . translate ( '*.txt' ) >>> regex '(?s:.*\\.txt)\\z' >>> reobj = re . compile ( regex ) >>> reobj . match ( 'foobar.txt' ) <re.Match object; span=(0, 10), match='foobar.txt'> 参考 glob ...
https://man.mtool.work/python/3.14/library/fnmatch.html
glob --- Unix 形式のパス名のパターン展開 7485
glob --- Unix 形式のパス名のパターン展開 ソースコード: Lib/glob.py glob モジュールは、Unix シェルに似たパターンマッチの規則を使ってパス名を探します。 チルダ展開は行いませんが、 * 、 ? 、 [] で表す文字の範囲は正しくマッチします。 実際にサブシ ... x = glob . translate ( '**/*.txt' , recursive = True , include_hidden = True ) >>> regex '(?s:(?:.+/)?[^/]*\\.txt)\\z' >>> reobj = re . compile ( regex ) >>> reobj . match ( 'foo/bar/baz.txt' ) <re.Match object; span=(0, 15), match='foo/bar/baz.txt'> ...
https://man.mtool.work/python/3.14/library/glob.html
PREV 1 NEXT