SyntaxFix
Write A Post
Hire A Developer
Questions
If I had to do this with a regex, I'd do it like this:
s = re.sub(r'\.jpg$', '', s)