I want to split a string into two parts, the string is almost free text, for example:
$string = 'hi how are you';
and i want the split to look like this:
array(
[0] => hi
[1] => how are you
)
I tried using this regex: /(\S*)\s*(\.*)/
but even when the array returned is the correct size, the values comes empty.
What should be the pattern necessary to make this works?