| Total Complexity | 1 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import sys |
||
| 2 | import os |
||
| 3 | import json |
||
| 4 | import argparse |
||
| 5 | import getpass |
||
| 6 | import logging |
||
| 7 | |||
| 8 | |||
| 9 | logging.basicConfig(stream=sys.stdout, level=logging.INFO) |
||
| 10 | #logger = logging.getLogger('LORISQuery') |
||
| 11 | |||
| 12 | |||
| 13 | def number_extraction(string): |
||
| 14 | """ |
||
| 15 | Return |
||
| 16 | :param string: |
||
| 17 | :return: a LIST of strings of number! |
||
| 18 | """ |
||
| 19 | import re |
||
| 20 | return re.findall(r'\d+', string) |
||
| 21 | |||
| 22 | if __name__ == '__main__': |
||
| 23 | print(number_extraction("T4")) |
||
| 24 | |||
| 25 |