I got a question: I have a long string and want to find the position of a certain syntax with the letter “f” and four random numbers e.g “f1234”. The “f” will be there everytime, but the numbers change. So it’s like “fxxxx”. Is there any option?
If there’s only one in a larger string MyString, you can find it by assigning a new string variable to System.Text.RegularExpressions.Regex.Match(MyText, "f\d{4}").Value.