Chamomile wrote:
[color=blue]
> Yes, I suppose I should have said 'kind' not type .[/color]
I wasn't nitpicking your word choice. Sorry if it came across as if
I was -- my phraseology was obviously poor in that case. I was
trying to get a better idea as to how you wanted to split the string.
[color=blue]
> 'multiposting' (by which I assume you mean also posting on alt.php) is a
> bad thing then?[/color]
Yes. Most definitely.
("Multiposting" is posting the same article separately to multiple
newsgroups; "crossposting" is simultaneously sending a *single*
article to multiple newsgroups.)
If someone were to followup to your article in alt.php, there'd be
two threads discussing exactly the same subject, which'd pointlessly
cover the same ground. It so happens that most folks read both
groups, but the possibility remains.
If you want to post the same article to different newsgroups,
crosspost, and seriously consider setting followups to the group
where the discussion is most topical. It's usually unnecessary to
even crosspost though. Some groups condemn crossposting; some
moderated groups even prevent crossposting.
http://www.cs.tut.fi/~jkorpela/usenet/xpost.html
[color=blue]
> Also, I should have said that the boundry between the first (text) portion
> of the string is sometimes only 1 space (unforgiveable I know)[/color]
That makes it slightly more tricky.
[color=blue]
> and I have been trying to use an alpha vs. numeric comparison to do the
> first split.[/color]
Right. That's probably the best way, unless there are other
constraints you're hiding. ;-)
Consider:
preg_split('`\s+(?=\d)`',$string)
That returns an array containing substrings of $string split along
boundaries of one or more whitespace characters that are followed by
a decimal digit.
--
Jock