###前提・実現したいこと
swiftでhtmlの中のsrcsetタグを取り出したいのですがうまく行きません。。。。
例えば以下のようなソースコードがあるとします。
###サンプルのソースコード
<img src=\"http:\/\/sample.jp\/sample\/wp-content\/uploads\/2017\/03\/sample.jpg\" alt=\”sample\" width=\"2000\" height=\"1500\" class=\"aligncenter size-full wp-image\" srcset=\"https:\/\/sample.jp\/sample\/wp-content\/uploads\/2017\/03\/sample.jpg 2000w, https:\/\/sample.jp\/sample\/wp-content\/uploads\/2017\/03\/sample-150x113.jpg 150w, https:\/\/sample.jp\/sample\/wp-content\/uploads\/2017\/03\/sample.jpg 533w, https:\/\/sample.jp\/sample\/wp-content\/uploads\/2017\/03\/sample-1024x768.jpg 1024w\" sizes=\"(max-width: 2000px) 100vw, 2000px\" \/>
この中からsrcsetの中にいる
https://sample.jp/sample/wp-content/uploads/2017/03/sample.jpg
https://sample.jp/sample/wp-content/uploads/2017/03/sample-150x113.jpg
https://sample.jp/sample/wp-content/uploads/2017/03/sample.jpg
https://sample.jp/sample/wp-content/uploads/2017/03/sample-1024x768.jpg
こいつらだけを取り出したいです。
###試したこと
srcset="(^http.+?jpg$)>
こんな感じで書いてみましたが動きません。
ど素人な質問で大変恐縮ですが、どなたかご助言いただきたくご質問させていただきました。
よろしくお願いします(>人<;)