I have a String in Java, something like this -
{elementId:'pagination',locale:'en',activePage:'1',items:'-10',maxButtons:'5'}
I need the numbers without the quotes
{elementId:'pagination',locale:'en',activePage: 1, items: -10, maxButtons:5}
Tried
replaceAll("\\d+", "$0") or
replaceAll("[0-9]", "$0")
But it returns me number with quotes.
Is there a way to remove these quotes for numbers?