I'm trying to think of a regular expression for this but not having any luck..
Let's say you have a security question on you website so the person can recover a password. People often forget exactly how they entered information. For example, given the question "What company do you work for?", a user might answer "Microsoft Corp.". But a month later when they are prompted to answer this question, they might type in "Microsoft", which wouldn't match their original answer even though they clearly answered correctly.
"Microsoft Corp." or "Microsoft Inc." or "Microsoft Co." would match "Microsoft", and "questar gas" would match "Questar Gas Co.". "Bank Corp. of America" would NOT match "Bank of America" because the word "Corp." is not at the end of the string.
What is the best way to accomplish this?