I am trying to extract the text between two strings with double quotes and square brackets.
The format I have is:
Which I would like to turn in to
55,57,56,58,59
I have tried every variety of pattern I’ve come across but have had no luck. Can anyone tell me what pattern would achieve this using PHP’s regex functions?
That should work for you:
or if you want to match more than one string like that in the text, then just use
preg_match_all: