I'm new to Python and Regex patterns and it's been very frustrating. I'd be very much appreciated if someone can assist me in finding the correct patten to remove three things (1) ',' (2) '] (3) ['
with open(f"/home/pi/students/{biometric_id}.txt") as f:
content = f.readlines()
content = str([item.replace('\n', '<br>') for item in content])
#content = re.sub(r"\([^()]*\)", "", content)
return render_template("Page-4.html", content=content)
[' ', ' ', ' ', 'Item: Cheese Wrap ', 'Cost: $3.00 ', 'Remaining Balance: $12.2 ', '-------------------------- ']