我一直在解决来自不同来源的正则表达式问题。你能帮助我解决这个问题的正则表达式吗
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是练习正则表达式问题的好地方。