Oct-09-2019, 05:12 PM
You'll want something more like this:
regex = re.compile("(?:FEW|BKN|OVC|SCT)(\d{3})")The digits will be in a capture group for each match. Review the Python documentation for regex groups to access them.