I have a string such as "big bad dog", how can I get an string[] array which includes all the possible word/phrase combinations?
So, I would like to return "big", "bad", "dog", "big bad", "bad dog" and "big bad dog" - therefore the order of the words in the original string must be respected.
Is this something that could be done with a regular expression?