using System;
class Demo {
static void Main() {
string input = "https://example.com/new.html";
// See if input matches one of these starts.
if (input.StartsWith("https://www.example.com") ||
input.StartsWith("https://example.com")) {
Console.WriteLine(true);
}
}
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265906.html