{}
62
%OFF

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Become a PRO
Become a PRO
62
%OFF

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Become a PRO
Become a PRO
run-icon
main.py
import re txt = "$2024122201200}" x = re.sub(r'\$(\d+)[}]*', r'\1', txt) print(x) txt = "$2024122201200" x1 = re.sub(r'\$(\d+)[}]*', r'\1', txt) print(x1)
Output