From: Aureliano Calvo Date: 2007-06-17T04:17:27+09:00 Subject: Re: Negative lookahead in Regexp question Wouldn't it be better to just use a xml parser? On 6/16/07, Axel Etzold wrote:> 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>> -- "Es tambi辿n nuestra intenci坦n erradicar la corrupci坦n, ofreciendo comonorma la honestidad, la idoneidad y la eficiencia. Con madurez ysentido de unidad es f叩cil pensar en la recomposici坦n del serargentino. Ese ser argentino, basado en madurez y en sentido deunidad, permitir叩 inspirar para elevarnos por encima de la miseria quela antinomia nos ha planteado, para dejar, de una vez por todas, eseser "anti" y ser, de una vez por todas, "pro": "Pro argentinos"" Jorge Rafael Videla para el 25 de mayo de 1976