Does C# have a String Tokenizer like Java's?

前端 未结 11 1510
日久生厌
日久生厌 2020-12-01 11:31

I\'m doing simple string input parsing and I am in need of a string tokenizer. I am new to C# but have programmed Java, and it seems natural that C# should have a string tok

11条回答
  •  清歌不尽
    2020-12-01 12:13

    The similar to Java's method is:

    Regex.Split(string, pattern);
    

    where

    • string - the text you need to split
    • pattern - string type pattern, what is splitting the text

提交回复
热议问题