This may be easy for somebody familiar with regex's, but I am not and it's hard for me.
I need a regex that will match 1 or more words in a string starting from the beginning of each word.
Words are separated with a space char.
For example, for this:
"one red apple"
the following should be a match since all these substrings exist in the source and they all start from the beginning of words:
one red ap
apple red o
apple red on
the following should NOT be a match since one of more words don't start from the first character of a word or simply doesn't exist in the string:
one red orange
help is very appreciated!