PyDragsView/test.py

6 lines
134 B
Python
Raw Permalink Normal View History

2023-12-30 09:43:16 +00:00
import re
regex = re.compile("somevalue\\(([^\\(\\)]+)\\)")
rst = regex.match("somevalue(adfadsfdf)")
if rst:
print(rst.group(1))