For this particular string you can try something like
Pattern pattern = Pattern.compile("
but if your string can change (like href atrubute can have other atributes before it) it can not work as expected. That is one of the reasons to use parsers rather then regex.