I have this string: FW:MKEQP2B4.BIN
I need to seperate the part after FW: from the rest of it. Since this is just a part of a bigger string and for different string the FW: can be formatted differently I decided to use regex.
I have this regex FW:.*(\S+).*
but it matches my string but .group(1)
is just a single character 'N'. I use .search()
Why does regex behave so odd for such a seemingly easy task...