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

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

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