I am trying to write a pattern for extracting the path for files found in img tags in HTML.
String string = \"
You want to play with the greedy form of group-capture. Something like
src\\s*=\\s*\"(.+)?\"
By default the regex will try and match as much as possible