Suppose I have a html link like this:
<a href = "https://mitsui-shopping-park.com/lalaport/koshien/" target="_blank"> https://mitsui-shopping-park.com/lalaport / koshien / </a>
I want to extract:
<a href = "THIS LINK" target="_blank"> NOT THIS LINK </a>
I tried: someString.replacingOccurrences(of: "<[^>]+>", with: "", options: .regularExpression, range: nil)
but that gives me:
<a href = "NOT THIS LINK" target="_blank"> BUT THIS LINK </a>
Please help.
See Question&Answers more detail:os