질문과 답변

소프트웨어 정규표현식 질문입니다. 도움을 부탁드립니다. ^.^

2023.09.27 00:59

파풍초 조회:187

정규표현식 질문입니다. 도움을 부탁드립니다. ^.^

 

1,2번 중에서 1번의 정규식은 다음과 같습니다. 그런데 2는 중간에 "."가 있는 경우에는 정규식에서 제외하고 싶습니다. 이런 경우에는 어떻게 정규식을 해야 할 지 고수님의 한 수 지도를 부탁드립니다.

해피데이!

 

1. 한 문장 안에 "—"가 2개가 있는 경우에는 "—"albeit through different ways from those of science fiction"—"에 있어서  {albeit through different ways from those of science fiction}로 바꾸고 싶습니다.

 

1. The end of Griffin actually begins with his body decomposing, which leads to a progressive alteration in his state of consciousness and then to madness, ending finally with his death at the hands of a mob. The level of madness attained by Griffin calls to mind—albeit through different ways from those of science fiction—the particular fragmentation of the self of the person with schizophrenia.

 

찾기: ([a-z])—(.*?)—([a-z])

바꾸기: $1 {$2} $3

 

1. The end of Griffin actually begins with his body decomposing, which leads to a progressive alteration in his state of consciousness and then to madness, ending finally with his death at the hands of a mob. The level of madness attained by Griffin calls to mind {albeit through different ways from those of science fiction} the particular fragmentation of the self of the person with schizophrenia.

 

2. 한 문장 안에 "—"가 한 개만 있는 경우. "." 마침표를 기준으로 양쪽에 각각 한 문장 안에 "—"가 한개씩 있습니다. 이럴 경우에는 정규식을 적용할 필요가 없습니다.

2. The end of Griffin actually begins with his body decomposing, which leads to a progressive alteration in his state of consciousness and then to madness—ending finally with his death at the hands of a mob. The level of madness attained by Griffin calls to mind—albeit through different ways from those of science fiction the particular fragmentation of the self of the person with schizophrenia.

 

 

번호 제목 글쓴이 조회 등록일
[공지] 질문과 답변 게시판 이용간 유의사항 gooddew - -
97992 소프트웨어| emeditor 정규표현식에서 대소문자를 첫글자만 대문자로 바... [2] 파풍초 165 10-08
97991 윈 도 우| diskpart 관련 질문 [3] hwangsan 385 10-08
97990 윈 도 우| Context Menu에 vhd 생성메뉴 [11] 사랑해요™ 307 10-08
97989 윈 도 우| 작업표시줄 우측에 Tools>> 아이콘이 나타나게 하는 ... fkjin 239 10-08
97988 소프트웨어| 윈도우와 pe 에서 같이 사용할 수 있는 포타블앱이 있나요? [2] brucex 417 10-07
97987 하드웨어| 조금 무리한 질문 [7] 어차피 653 10-07
97986 소프트웨어| ventoy에서 윈도우11 tpm 우회설치되나요? [3] 『ⓖⓤⓝ』 592 10-07
97985 윈 도 우| 12세대 13세대 win10문의 [6] 뷰티블마인 570 10-07
97984 소프트웨어| 음질향상 프로그램 [7] sum 767 10-07
97983 윈 도 우| windowsXPE149 [4] 메아리 579 10-07
97982 소프트웨어| DriveSnapShot 복구시 백업파일이 분할되는 현상 [1] 줄기야 265 10-07
97981 소프트웨어| 한글화 부탁요... [2] 淸樂 376 10-07
97980 윈 도 우| Shell quick lanch 아이콘 순서가 매번바뀌네요 아킬레스님 123 10-06
97979 윈 도 우| 크롬 [2] 덥다 347 10-06
97978 윈 도 우| windows.old [6] 덥다 616 10-06
97977 윈 도 우| 윈도우11 21H1 에서 22H2로 업데이트 오류 [4] 클리엔테스 307 10-06
97976 하드웨어| PC부팅은 됬는데 불량 확인 방법이 있나요?? 단디™ 219 10-06
97975 소프트웨어| PDF 검색 잘 하는 프로그램 추천해주세요. [9] 최동안 309 10-06
97974 하드웨어| 그래픽이 나간거 같아요 추천 [8] 단디™ 495 10-06
97973 소프트웨어| Wondershare DemoCreator 구입 관련 문의 드립니다. 들에핀국화 83 10-06
XE1.11.6 Layout1.4.8