How to separate a string when a given word is started?

Asked

Viewed 31 times

1

String:

string str = "1234 5678 9012 ID: 123456789"

How can I separate the string when the word "ID" is found?

Ex: string[] formatted = {"1234 5678 9012", "ID: 123456789"}

  • Still https://answall.com/q/251720/101

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.