I'm printing user song from my server like this:
<id>0000</id>
<song>Song 1</song>
<id>1111</id>
<song>Song 2</song>
<id>2222</id>
<song>Song 3</song>
I'm using regex to get all IDs into array with this pattern <id>(.*?)<\/id>
but it's only selecting first ID (<id>0000</id>
). Why it isn't selecting all IDs?
NSArray *song_id = [user matchWithRegex:@"<id>(.*?)<\/id>"];