다른 소스에서 정규식 문제를 해결해 왔습니다. 너희들은이 문제단어를 대문자로 바꾸는 정규식
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은 정규식 문제를 연습 할 수있는 훌륭한 사이트입니다. g
플래그
\b
와 귀하의 정규식해야
감사합니다.하지만 조금 설명 할 수 있습니까? – ntstha