9 lines
305 B
Python
Executable file
9 lines
305 B
Python
Executable file
import re
|
|
|
|
with open('c:/ScriptoriumAI/scriptoriumai-ui/src/pages/EditorSimplified.tsx', 'r', encoding='utf-8') as f:
|
|
text = f.read()
|
|
|
|
# Let's extract buttons from the header.
|
|
header_match = re.search(r'(<header.*?</header>)', text, re.DOTALL)
|
|
if header_match:
|
|
print(header_match.group(1)[:1500])
|