我正在寻找一个正则表达式来查找 '<' character followed by another character in a string. For example:
1) "<a" = true 2) "<?" = true 3) "?sds" = false
谢谢!
基本上需要扣除字符串是否包含'<' character followed by any other character.
使用正则表达式模式<. to match a '<' character followed by any other character in C#:
bool contains = Regex.IsMatch(input, "<.");
用字符串变量替换输入。对于“