unwanted/regexengine.py
def find_op(regex):

    """finds the first occurance
     of the opeartor"""
    
    list_of_op = ["*","?","+","."]
    index = -1
    for i in range(len(regex)):
        if(regex[i] in list_of_op):
            index = i
            break
    return index
finds the first occurance
     of the opeartor
finds the first occurance
of the opeartor
finds the first occurance of the opeartor
def find_op(regex):
    list_of_op = ["*","?","+","."]
    index = -1
    for i in range(len(regex)):
        if(regex[i] in list_of_op):
            index = i
            break
    return index
def find_op ( regex ) : list_of_op = [ "*" , "?" , "+" , "." ] index = - 1 for i in range ( len ( regex ) ) : if ( regex [ i ] in list_of_op ) : index = i break return index
finds the first occurance
of the opeartor
finds the first occurance of the opeartor
"""finds the first occurance
     of the opeartor"""
regex