what i need to do is look inside a string for something like "12345" and replace it with 12345 so basically search for any number within quotes and replace it with just the number without the quotes.
I've tried something but i don't know how to keep the evalueted number removing only the quotes.
Some examples:
foo bar "123" bar --> foo bar 123 bar
foo bar "123qwe" bar --> foo bar "123qwe" bar
foo "bar" "123" bar --> foo "bar" 123 bar
Thank you in advance.
Solved:
.replace(/"([0-9]+)"/g, '$1');