i was struggling to make a regex which extract the digits bettween the last set of parentheses from a string, and this is what i came with until now:
^.*?\([^\d]*(\d+)[^\d]*\).*$
E.g.:
This is, (123456) a string (78910);
It returns 123456 , which is great but i need it to look at the last set and return 78910.Also , i want the regex to ignore everything but digits:
This is, (123bleah456) a string (789da10);
Should return: 78910
UPDATE
Using regex:
(\d+)(?!.*\d)
For string:
Telefon Mobil (123)Apple iPhone 6 128GB Gold(1567)asd234
Will return 234 when it should be 1567