static System.String[] SplitQuotesStrings( string input )

robot_2Generated
code_blocksInput

Description

The SplitQuotesStrings method is a static extension method provided by the SandboxSystemExtensions class. It is designed to split a given input string into an array of strings, taking into account quoted substrings. This method is useful when you need to parse a string that contains quoted segments, ensuring that quoted text is treated as a single unit.

Usage

To use the SplitQuotesStrings method, simply call it on a string instance. The method will return an array of strings, where each element is a part of the original string, split by spaces, but preserving quoted substrings as single elements.

For example, if the input string is "Hello \"World\" Sandbox", the method will return an array with the elements ["Hello", "World", "Sandbox"].

Example

// Example usage of SplitQuotesStrings
string input = "Hello \"World\" Sandbox";
string[] result = input.SplitQuotesStrings();

// result will be ["Hello", "World", "Sandbox"]