hi everybody..

How to appendReplace multiple values in java.util.regex.I did single value in java.util.regex. plz send one example for multiple value purpose
THis is single appendReplace value code

import java.util.regex.*;

public class AllData {


public static void main(String args[])throws Exception
{




String lower="<a href";
Pattern p = Pattern.compile(lower);
String strlow="this is to test <a href=http://www.k7mail.com>k7mail.com</a> <A HREF=http://www.k2mail.com> k2mail.com </a> ";

String upper="<A HREF";
String fill=" ";
fill=strlow.replaceAll(upper,lower);

StringBuffer buf = new StringBuffer(fill);

Matcher m = p.matcher(buf.toString());

String kk=buf.toString();
StringBuffer sb = new StringBuffer(kk);
while(m.find(0))
{
m.appendReplacement(sb,"target=_blank href");
}
m.appendTail(sb);
System.out.println("The output is "+sb.toString());



}

}