C# Regex to match the word with dot

后端 未结 3 1777
名媛妹妹
名媛妹妹 2020-12-01 12:10

The quick brown fox jumps over the lazy dog\" is an English-language pangram, alphabet! that is, a phrase that contains all of the letters of the alph

3条回答
  •  再見小時候
    2020-12-01 12:25

    . is a special character in regex, that matches anything. Try escaping it:

     MatchCollection match = Regex.Matches(entireText, @"alphabet\.");
    

提交回复
热议问题