Implemeneted some regex methods