I would like to parse a string in python which is the off format
"JXE 2000 This is a bug to fix blah " or of the format
"JXE-2000: This is a bug to fix blah " and check if the string has JXE and a number.
In the above example I will need to check if the string has JXE and 2000. I am new to python.
I tried the following:
textpattern="JXE-5000: This is bug "
text=re.compile("^([A-Z][0-9]+)*$")
text=re.search("JXE (.*)", textpattern)
print (text.groups())
I seem to be getting only "5000 This is a bug".
;) in python, right?