가능한 중복 :
C# split string but keep split chars/separators닷넷 분할
원래 분할 문자를 떠날 것이다 닷넷 문자열 분할() 함수를 할 수있는 간단한 방법이 있나요 결과에?
"some text {that|or} another".Split('{','|','}');
가 함께 배열 될 것이다 : 것을
이러한
[0] = "some text "
[1] = "{"
[2] = "that"
[3] = "|"
...
바람직 정규식없이.
http://tackoverflow.com/questions/2484919/how-do-i-split-a-string-by-strings-and-include-the-delimiters-using-net @TimSchmelter 모든 답변이 정규식이 아닙니다. 구현. – D3vtr0n
그 좋은 해결책은 .. thx –