human
How to use regular expression to separate numbers and characters in strings like "30M1000N20M"
assistant
Here is some code to separate numbers from characters in string "30m1000n20m"

re.findall('(([0-9]+)([A-Z]))', '20M10000N80M')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.