I have some nested lists of symbols, all of the same format, and I wish to convert them to nested lists of integers, i.e.
{e1,{e1,{e1,e2}}} -> {1,{1,{1,2}}}
Any quick ways to do this?
Note: I will always have nested lists of that form, but their length may vary and the symbols may not always have single digit integers in them, e.g.
{e4,{e200,{e1,{e11,e23}}}} -> {4,{200,{1,{11,23}}}}
Many thanks!