I'm making an api call that returns some data but also requires me to use some pagination in order to grab ALL of the data. Returned in the response content are two links, "<https://example1>"
and "<https://example2>"
.
Example one is the link to the next page of data, but I'm having trouble extracting just the url between the '<' and the '>'. I'm not an experienced Regex user so I figured I would ask here for help.
CodePudding user response:
my @urls = $text =~ /<([^<>] )>/g;