RegExp:
Output:

∑={}
R1=
R2=
Result:
Automata: