/? lookbehind:
String s =
"<img rel=\"{objectid:498,newobject:1,fileid:338}\" " +
"width=\"80\" height=\"60\" align=\"left\" " +
"src=\"../../../../files/jpg1/Desert1.jpg\" alt=\"\" />";
Pattern p = Pattern.compile(
"(?:\\brel=\"\\{|\\G,)(\\w+):(\\w+)");
Matcher m = p.matcher(s);
while (m.find())
{
System.out.printf("%s = %s%n", m.group(1), m.group(2));
}
find() rel="{. (\G,) , . (\w+):(\w+), /, - rel.
, IMG, , HTML . , , . , ([^:]+):([^,}]+) (\w+):(\w+).