public static WeightValue extract(String buffer, boolean localized) {
		WeightUnits units = WeightUnits.LB;
		if (buffer != null) {
			buffer = buffer.trim();
			for (WeightUnits lu : WeightUnits.values()) {
				String text = Enums.toId(lu);
				if (buffer.endsWith(text)) {
					units = lu;
					buffer = buffer.substring(0, buffer.length() - text.length());
					break;
				}
			}
		}
		return new WeightValue(localized ? Numbers.getLocalizedDouble(buffer, 0) : Numbers.getDouble(buffer, 0), units);
	}