Generally, it will last for a week or in severe cases two. It entirely depends on the cause and extent of hip flexor strain.