import re # rãä»ãããã¨ãæ¨å¥¨ã # ããã¯ã¹ã©ãã·ã¥ããã®ã¾ã¾ã§åãããããããã content = r'hellow python, 123, end.' pattern = 'hel' result = re.match(pattern, content) if result: #none以å¤ã®å ´å print(result) # output:<_sre.SRE_Match object; span=(0, 3), match='hel'> print(result.span()) # output:(0, 3) print(result.group()) # output:hel
{{#tags}}- {{label}}
{{/tags}}