From: Axel Etzold Date: 2007-06-17T03:40:46+09:00 Subject: Re: Negative lookahead in Regexp question Dear Byron, thank you for responding. I am working on an analysis of so-called chunked text, i.e., an analysis of words in a sentence, that classifies words as nouns / verbs / adjectives etc. A typical sentence with chunking tags thus looks like this: " The physical descriptions of places in North Carolina , in so far as they are specific at all , owe a little to memories of my childhood , although I 've also borrowed indiscriminately from other people 's childhood memories as well ." Originally, I wanted to use Regexps to split the original sentence into groups using negative lookahead, which I've now skipped in favor of repeated Array.splits, but I think I could you use knowing how to search for a substring using negative lookahead, i.e., as in my example: regexp=/.../ <= searched for, such that: string=" In North Carolina " ref=regexp.match(string) p ref[1] => "In North Carolina" Thank you for any help! Best regards, Axel -- Psssst! Schon vom neuen GMX MultiMessenger geh�rt? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger