0
我一直在解決不同來源的正則表達式問題。你們能幫助我弄清楚這個問題正則表達式來利用單詞
Use substitution to replace every occurrence of the word i with the word I (uppercase, I as in me). E.g.: i'm replacing it. am i not? -> I'm replacing it. am I not?. A regex match is replaced with the text in the sub field when using substitution.
正則表達式如何我試圖用這個表達式
.*\bi|.*i$
但有此錯誤You are not replacing i at the end of the string.
。 BTW regex101是練習正則表達式問題的好地方。
謝謝你,但你能解釋一下嗎 – ntstha