A more readable regex

Scientific OR decimal OR integer notation:
-?(\d\.?\d*[Ee][+\-]?\d+|(\d+\.\d*|\d*\.\d+)|\d+)
or better (modularized):
int = r'\d+'
real_dn = r'(\d+\.\d*|\d*\.\d+)'
real_sn = r'(\d\.?\d*[Ee][+\-]?\d+'***
real = '-?(' + real_sn + '|' + real_dn + '|' + int + ')'
Note: first test on the most complicated regex in OR expressions

previousnexttable of contents