I would like to have a regex to separate a word and decimal number.
Example of an input string:
{[FACEBOOK23.1K],[UNKNOWN6],[SKYPE12.12M]}
Expected result:
{[FACEBOOK,23.1K],[UNKNOWN,6],[SKYPE,12.12M]}
So curently i am using re.findall(r'\D+|\d+.+\d+|\d+',element)
and here element is [FACEBOOK23.1K] and it is seperating as [FACEBOOK,23.1,K]
and i tried the followig regex =re.findall(r'\D+|(\d+.+\d+)?(K|M|G|T)|(\d+)?(K|M|G|T)|\d+',element) to get expected result as it is showing the seperation correctly on regex online simulator ,but it is not working when i am trying on my code ? >>>>