I want to check whether Value1 below contains "abc" within the first X characters. How would you check this with an if statement?
var Value1 = "ddabcgghh";
if (Value1.Contains("abc"))
{
found = true;
}
It could be within the first 3, 4 or 5 characters.