There are lots of special characters in these text file I get and I am trying to find and replace them with other strings. For example:
s = "BRAND~*HP*5250*RAM128*GPUAMD7990*~"
df = re.findall('BRAND~*(.+?)*~', s)
print(df)
The result yield ['*']
I want the result to be HP*5250*RAM128*GPUAMD7990
How do I achieve this?