'Analyze the possible regexp contents and extract filenames or
directories without regexp.
:param line: A regexp filename or directory.
:return: A real filename or directory.'

def filter_special_character(self, line):

    special_characters = ['*', '?', '[', ']', ':']
    for char in special_characters:
        if (char in line):
            l = line.split(char)[0]
            if ('/' in l):
                line = '/'.join(l.split('/')[:(-1)])
            else:
                line = ''
                break
    return line
