I have a string of ID's
wherein they're being separated with commas.
For example, the string is:
"15,14,12,13"
How can I extract the numbers/id's from this string and save each of them in a JSON
or array to be something like this
Array: {
15,
14,
12,
13
}
I don't know how it's done using regex
or string manipulation. Please advice.