정규식을 사용하여 각 단락을 추출하고 유사한 단락이 많이 포함 된 텍스트 버퍼에서 추가 처리를위한 문자열로 저장해야합니다.단락을 추출하는 정규식
예 : 말은, 텍스트 버퍼는 다음과 같이이다 :
=== Jun 11 14:05:39 - Person Details ===
Person Name = "Hurlman"
Person Address = "2nd Street Benjamin Blvd NJ"
Persion Age = 25
=== Jun 11 14:05:39 - Person Details ===
Person Name = "Greg"
Person Address = "3rd Street Benjamin Blvd NJ"
Persion Age = 26
=== Jun 11 14:05:42 - Person Details ===
Person Name = "Michel"
Person Address = "4th Street Benjamin Blvd NJ"
Persion Age = 27
And I need to iterate through all the paragraphs and store each one of them to further find the specific person details inside.
Each paragraph I need to extract should be of the below format
=== Jun 11 14:05:42 - Person Details ===
Person Name = "Michel"
Person Address = "4th Street Benjamin Blvd NJ"
Persion Age = 27
어떤 도움이 많이 감사합니다!
은행 계좌 정보를 입력하십시오이 패턴을 사용할 수 있습니다. – zx81
죄송합니다.이 말은 다른 방법입니다. 귀하가 시도한 것을 보여줄 수 있습니까? – zx81
그래서 각 단락마다 새로운 (다른) 문자열을 만들고 싶습니까? – hwnd