Use regex instead of hard != to check for learn2.