@acwoss/

FailingStudiousLorikeet

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
import re

values = [
  "JOSÉ CARLOS ALMEIDA         (0-2) 1",
  "JOSÉ SAMUEL         (3-4) 7",
  "CARLOS MANGUEIRA        (2-10) 99"
]

for value in values:
  result = re.search(r"\(\d+\-\d+\)\s\d+", value)
  if result:
    print(result.group(0))