will find me the tag, which from the following example would be
<center>
<div align="center">
</div>
</center>
<table border="0">
to find a tag(?id)<a\\s+(.*?)/?>
will find me the tag, which from the following example would bem4.group()
HREF\\s*=\\s*(\"([^\"]+)\"|\'([^']+)\'|[^'\"])
would give me the attribute value.m2.group(1)
the html page which is contained in the variable "text" is not autmatically changed and i dont seen to know how to do that.String text1 = m2.replaceAll(new_res_url);
Exception in thread "main" java.lang.IllegalStateException: No match found
at java.util.regex.Matcher.group(Matcher.java:468)
at java.util.regex.Matcher.group(Matcher.java:428)
at httpclientregex.Main.main(Main.java:52)
Java Result: 1
Once you've downloaded HttpClient and dependencies you will need to put them on your classpath.