LORIS_helper.number_extraction()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 1
dl 0
loc 8
rs 10
c 0
b 0
f 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