import re
string1 = 'thisIsSomeText [128Kb]'
print(string1)
string2 = re.sub('[*]', '', string1)
print(string2)
thisIsSomeText [128Kb]
thisIsSomeText [128Kb]
my issue is that I need to remove [filesize]
from the end of a string. The syntax is killing me here and im struggling to understand what the proper format is for this.