file_parser.py 294 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import re from utils import remove_string def parse_keywords(line): line = line.strip() line = remove_string(line) result = '' for c in line: if re.match('[A-Za-z_@0-9]', c): result += c else: result += ' ' return result.split(' ')