Oct-12-2016, 09:41 PM
Do you mean something like this?
text = 'A sentence with a flag{in it} somewhere.' start = text.index('flag{') + 5 end = text.index('}', start + 1) print(text[start:end])
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures