[attname src="http://example.org"] somecontent [attname src="http://www.example.com"] から src 属性を抽出しようとしています。
私が今持っているもの:
preg_match_all('#attname src=".*[^"]#', $buffer, $bufferarr);
しかし、それは機能しません - second の後に停止がないため、次"
のようになります。attname src="http://example.org"] somecontent [attname src="http://www.example.com