0
我需要一般說明來搜索文本中的任何非字母字符之前和之後的句子或單個單詞.. 我會給幾個例子來說明我需要什麼:C#正則表達式,可能包含任何非字母字符的句子
搜索「好運氣」:
good luck in the exam.. (should match the pattern)
hello! good luck in the exam.. (should match)
mm,good luck! .. (should match)
hello again i wish yougood luckin the exam. (**should Not match**)
我指的是正則表達式應該匹配的句子時,它不與字母字符包圍。