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.
尝试获取以大写字母开头的文本节点中的所有单词,尝试
SelectNodes("//*[contains(text(), [A-Z])]");但不会编译,我是正则表达式的新手,我真的找不到任何东西,到处找。
SelectNodes("//*[contains(text(), [A-Z])]");
尝试这个:
SelectNodes("//*[matches(text(), '^[A-Z]')]");
但是,您可能需要先执行这些步骤才能正常工作。