I've a html tag in a string format. I need to fetch one dynamic value from that.
Input String :
final String str = "<input type=\"hidden\" name=\"OFBIZ_FRAMEWORK_REQUEST_SYNCH_TOKEN\" value=\"1590137573579\">\n";
From the above string I need to fetch the value attribute. (i.e, 1590137573579 - This value changes dynamically)
Below shared is the regex I tried, it is the giving the result but sure whether it is a proper regex or not.
String regex = "value=\"(.*?)\"";
Can some help here with proper regex statement.