Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
string str = " some string ||^^ another string ||^^ shorter string
正規表現を使用して str をパターン ||^^ で解析するにはどうすればよいですか?
これを分割するには:
string str = " some string ||^^ another string ||^^ shorter string";
次の正規表現を使用できます。
string[] lines = Regex.Split(str, @"\|\|\^\^");
string[] lines = Regex.Split(str, "@"\|\|\^\^");