I have html that has the weight of a item.
<div><b>Item Weight (0.51 lbs in Warehouse 3)</b></div>
I need a regex to get the weight and unit of measure.
So in the above html, I need:
0.51
and
lbs
I am using java, I have a helper method, just need to get the regex down now!
String regexPattern = "";
String result = "";
Pattern p = Pattern.compile(regexPattern);
Matcher m = p.matcher(text);
if(m.find())
result = m.group(1).trim();