If I have a delimited text file with a basic delimiter (say |
for instance) does it make a difference whether I use a String
or a Regex
split?
Would I see any performance gains with one versus the other?
I am assuming you would want to use Regex.Split
if you have escaped
delimiters that you don't want to split on (|
for example).
Are there any other reasons to use Regex.Split
vs String.Split
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…