How do I modify the following String manipulation to look for "text to extract" in the HTML code below ? I don't understand the "(?<=')[^']+"
I understand it is a regex pattern and I looked on a website but I don't get the logic of it... Maybe if someone show me the way with my question I could understand better..
if let match = dataString?.range(of: "(?<=')[^']+", options: .regularExpression) {
print(dataString?.substring(with: match) as Any)
HTML code:
<span class="phrase">Text to Extract</span></span></span></p>