fixing regexp for image src attr per comments on tutorial

This commit is contained in:
Dan Buch 2010-02-21 00:21:53 -05:00
parent 1deb4cb40e
commit ce8ff91b3f

View File

@ -41,7 +41,7 @@
}
private function parseImageUrl(fromHtml:XMLList):String {
var pattern:RegExp = /img src="(.+?)" /;
var pattern:RegExp = /img src="(.+?)"/;
var results:Array = pattern.exec(fromHtml);
var imageURL:String = results[1]; // backreference 1 from pattern
return imageURL;