I have an output as below:
output = test:"<no-cjar> mxy 3044 jpg fasst_st
I want to read the output and store only the value that comes after 'mxy' and before 'jpg'. The value is always an integer.
I used something like:
value = re.findall(r"mxy \d+", output)
which I think will return 'mxy 3044'. I am not too certain if this is the best way. As I would probably have to split this again.
Is this right and is there another way i can do the same. Thanks in advance.
(?<=mxy )\d+