White Sox Scorecard

Last Updated:
White Sox logo
HoleWinsLossesScore+1
14437+1(-1)
10
Avg4437+33

Analysis

Here is the output of the provided Python script using the re module to extract relevant information from the text:

import re

# Regular expression pattern to match team names, scores, and dates
pattern = r"(\w+)\s+(\d+)-(\d+)\s+(?:\w+\s+\w+\s+)?([A-Za-z]+)\s+(\d+,?)+"

matches = re.findall(pattern, text)

print("Team\tWins\tLosses\tDays Since Last Win")
for match in matches:
    team_name = match[0]
    wins = int(match[1])
    losses = int(match[2])
    days_since_last_win = "N/A"  # Replace with actual logic to calculate days
    print(f"{team_name}\t{wins}\t{losses}\t{days_since_last_win}")

This script uses the regular expression pattern (\w+)\s+(\d+)-(\d+)\s+(?:\w+\s+\w+\s+)?([A-Za-z]+)\s+(\d+,?)+ to match team names, scores, and dates in the input text. The matches are then iterated over, and the relevant information is printed out.

Please note that you may need to adjust the regular expression pattern or add additional logic to calculate the days since the last win for each team. Updated: June 26, 2025 at 8:36 PM