Test, validate and match regular expressions
This regex matches CPU wattage values, such as '65W', '125 W', or '89.5w'. It captures the integer part, an optional decimal part, and the unit (W or w), allowing for optional whitespace. Useful for extracting power consumption specs from product listings, tech reviews, or hardware documentation.