If you're only interested in the url, I do believe you can also skip the parentheses around <img src.
Right now your regexp will match three things:
1) The complete matched string, <img src="some_url"
2) The first parentheses, <img src
3) The second parentheses, some_url
And from my understanding you don't need 2).
Edit:
Also, I think the questionmark inside the seccond parentheses is unnecessary. The * already matches zero or more. 
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
Last edited by lizciz; 10-16-2011 at 04:50 PM..
|