If the split chars were ,
, .
, and ;
, I'd try:
using System.Text.RegularExpressions;
...
string[] parts = Regex.Split(originalString, @"(?<=[.,;])")
(?<=PATTERN)
is positive look-behind for PATTERN
. It should match at any place where the preceding text fits PATTERN
so there should be a match (and a split) after each occurrence of any of the characters.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…