Update Program.cs

I have created a overridden version of your IndexOf usign RegularExpression, because is faster than use a for loop. Imagine that you have a string with 1000000000 chars, then a for loop will be slower than Regex.
Best regards