@arr = ('lean : sigma', 'none', 'lean : sigma'); Expected Ouput: First match=> learning : enable Second match => learning : enable