i got some confusion in String Replacement. i have string like
CustomerEmailID=fake; NavigatePageValue=0; IsCustomerInsertSucess=asdewewew;
in this string i need to change value of IsCustomerInsertSucess to others. but i am confuse that how can i
i have try with
String s1 = "CustomerEmailID=fake; NavigatePageValue=0; IsCustomerInsertSucess=asdewewew;";
s1 = s1.replaceAll("IsCustomerInsertSucess=(.*?);", "2026");
but its replace entire field also i need to change value only can you please help me
The simplest way (not the smartest) is to change your second line to