1. the two sentences in a line be splited to each sentence in a line.
2. remove the white space in left area.
This following script works well at first part. But it has two problems.
1. doesn't remove the white space in each left area.
2. doesn't split for the last parts like the example.
How can I fix it? Thanks for any help in advance.
Code: Select all
!r::
Clipboard := ""
Send, ^c
str:= Trim(Clipboard)
Clipboard:=RegExReplace(str, "([\p{L}\p{N} ,-]+[\p{P}])\s*([\p{L}\p{N} .。、;!?]+[\p{P}]\S*)", "${1}`n${2}")
Send ^v
Return
( raw data)
Nice to meet you. I'm Steve.
We had watched that movie before, so we knew the ending. 우리는 전에 그 영화를 보았으므로 결말을 알았습니다.
They had cleaned the house before their guests arrived. 그들은 손님이 도착하기 전에 집을 청소했습니다.
He had spoken to the manager about the issue earlier. 그는 이전 에이 문제에 대해 관리자에게 이야기했습니다.
They had played that game before, so they knew the rules 그들은 전에 그 게임을했기 때문에 규칙을 알았습니다.
By the end of the week, I will have completed this project. 주가 끝날 무렵, 나는이 프로젝트를 완료 할 것입니다.
She will have graduated from college by this time next year. 그녀는 내년 에이 시간까지 대학을 졸업했을 것입니다.
( result )
Nice to meet you.
I'm Steve.
We had watched that movie before, so we knew the ending.
우리는 전에 그 영화를 보았으므로 결말을 알았습니다.
They had cleaned the house before their guests arrived.
그들은 손님이 도착하기 전에 집을 청소했습니다.
He had spoken to the manager about the issue earlier.
그는 이전 에이 문제에 대해 관리자에게 이야기했습니다.
They had played that game before, so they knew the rules 그들은 전에 그 게임을했기 때문에 규칙을 알았습니다.
By the end of the week, I will have completed this project. 주가 끝날 무렵, 나는이 프로젝트를 완료 할 것입니다.
She will have graduated from college by this time next year. 그녀는 내년 에이 시간까지 대학을 졸업했을 것입니다.
(what I want )
Nice to meet you.
I'm Steve.
We had watched that movie before, so we knew the ending.
우리는 전에 그 영화를 보았으므로 결말을 알았습니다.
They had cleaned the house before their guests arrived.
그들은 손님이 도착하기 전에 집을 청소했습니다.
He had spoken to the manager about the issue earlier.
그는 이전 에이 문제에 대해 관리자에게 이야기했습니다.
They had played that game before, so they knew the rules
그들은 전에 그 게임을했기 때문에 규칙을 알았습니다.
By the end of the week, I will have completed this project.
주가 끝날 무렵, 나는이 프로젝트를 완료 할 것입니다.
She will have graduated from college by this time next year.
그녀는 내년 에이 시간까지 대학을 졸업했을 것입니다.