func findSrcs(_ content: String) {
if let match = content.range(of: """
(?<=src=")[^"]+
""", options: .regularExpression) {
print(content.substring(with: match))
}
}
Function above needs to return all src
s in html string. 'Content' is HTML string.
Function works but prints only the first image's src from Content. How to catch all of them?