I want to grab an img
tag from text returned from JSON data like that. I want to grab this from a string:
<img class="img" src="https://fbcdn-photos-c-a.akamaihd.net/hphotos-ak-frc3/1239478_598075296936250_1910331324_s.jpg" alt="" />
What is the regular expression I must use to match it?
I used the following, but it is not working.
"<img[^>]+src\s*=\s*['"]([^'"]+)['"][^>]*>"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…