A question such as in C # you can simply and nekodoemko sparss a string of the form _ * _ where * is any number of characters

For example, there is the string FIRST_SECOND_THIRD

You need to get a separate line SECOND, the easiest option is to use regular expresions as far as I know. I’m on you with regulars, so if you don’t directly want to answer, give a link to an intelligible explanation of regular expressions.

Thank.

    1 answer 1

    var all = "FIRST_SECOND_THIRD"; var second = all.Split('_')[1];