Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要知道如何no = ereg_replace(" .*", "", $command[$i]);在c#中使用$等价物,我是模式匹配的新手,谁能告诉我c#中模式匹配的例子?
no = ereg_replace(" .*", "", $command[$i]);
也许你可以使用正则表达式。
在此示例中,我们要删除字符串中的所有 HTML 标记。
string newDescription = Regex.Replace("hello how are <b>you</b>", "<[^>]*>", string.Empty);
newDescription 现在有“你好,你好吗”