I have a python dict that I have turned into a string using char(values()) command, the outcome after that is the following:
exp = 'dict_values([8590932455, 8590922136, 8590923186, 21640072856, 8590965080])'
I've been trying to get a regular expression that would allow me to acquire all the long numbers (8590932455, 8590922136, ..., 8590937754).
I tried something like this:
test = regexp(exp, '(\d+)', 'match');
And this works... but only when the string has only numbers. What if I had something like a mixture of letters and numbers (A1B2C3), or only letters (AJASNJASBAVENQI)? How can I make my regular expression work for all those 3 cases simultaneously?
Thanks in advance.