KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to split a string in Python so that I get everything before a certain regex. example string: "Some.File.Num10.example.txt" I need everything before this part: "Num10" , regex: r'Num\d\d' (the number will vary and possibly what comes after). Any ideas on how to do this?
Tags (comma-separated)
Save Edits
Cancel