1)
I am populating a variable called $bodytext with text from emails, what i am trying to do is create an array which contains lines bases on key sperators ie who,what, I, If etc... basically anything that could start a sentence.
I tried the following to see about chopping up the text by sentence structure ending ie . , ? !
Code: Select all
$linearray=split('ї?.!,]', $bodytext);I am however lacking regular expression skills.
I tried a small test using a single key text like "I " (notice i with a
space)
Code: Select all
$linearray=split('I ',$bodytext);2)
The second problem is that the split seems to eat the characters/strings i am splitting by. when I do a print_r on the array i see that it has eaten them, any idea suggestions?
Thanks