![정규식과 함께 Notepad++를 사용하여 ,"" 줄에서 첫 번째 항목을 찾고 다음으로 바꾸는 방법: ," "](https://rvso.com/image/1539558/%EC%A0%95%EA%B7%9C%EC%8B%9D%EA%B3%BC%20%ED%95%A8%EA%BB%98%20Notepad%2B%2B%EB%A5%BC%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%20%2C%22%22%20%EC%A4%84%EC%97%90%EC%84%9C%20%EC%B2%AB%20%EB%B2%88%EC%A7%B8%20%ED%95%AD%EB%AA%A9%EC%9D%84%20%EC%B0%BE%EA%B3%A0%20%EB%8B%A4%EC%9D%8C%EC%9C%BC%EB%A1%9C%20%EB%B0%94%EA%BE%B8%EB%8A%94%20%EB%B0%A9%EB%B2%95%3A%20%2C%22%20%22.png)
나는 교체하고 싶다첫 번째 발생Notepad++를 사용하여 각 줄에서 Regex로 찾기/바꾸기를 수행합니다.
찾다: ,"",
다음으로 교체:," ",
즉, 2개의 큰따옴표 사이에 2개의 공백을 삽입합니다.
어떻게 해야 하나요?
답변1
다음 정규식으로 수행할 수 있습니다.
- 무엇을 찾다:
,"",(.*)$
- 다음으로 교체:
," ",\1
- 검색 모드: 정규식
입력:
this is a ,"", here and another is here ,"", at the end
next ,"",,"", here ,"",
another one ,"",
,"", last one
예상 결과:
this is a ," ", here and another is here ,"", at the end
next ," ",,"", here ,"",
another one ," ",
," ", last one