File size: 323 Bytes
2113a6a
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import re

text = "自分の成功ライブカード置き場にあるカードを1枚手札に加える"
regex = r"成功ライブカード.*?手札に加"

match = re.search(regex, text)
print(f"Text: {text}")
print(f"Regex: {regex}")
print(f"Match: {match}")
if match:
    print(f"Matched: {match.group(0)}")