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.
私は正規表現を介してこれを行いたい: サンプル: 父は今日彼の祖父と彼の父を訪問します。
正規表現を使用して太字の 2 つの父を選択するにはどうすればよいですか? どうもありがとう。
var matchCollection = Regex.Matches("father goes visit his grandfather and and his father today.", "\bfather\b"); foreach (Match m in matchCollection) { // Process your code for each match }