LORIS_helper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A number_extraction() 0 8 1
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