79306244

Date: 2024-12-24 18:12:36
Score: 1.5
Natty:
Report link

You may use this:

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)

https://www.programiz.com/online-compiler/0fkwe2zixyrrQ

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
Posted by: ArtBindu