DEV Community

Discussion on: Python Regex help?

Collapse
 
gdsoumya profile image
Soumya Ghosh Dastidar

If you are sure about the string being Save you can just use string.split('Save')[0] to get the token you need.