Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #25123
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | SteveYoungTbird <stephen.young@chello.at> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Cannot manipulate array produced with string.match |
| Date | Sun, 29 Jun 2014 22:24:43 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 28 |
| Message-ID | <lopsmb$uvo$1@dont-email.me> (permalink) |
| References | <loj5qn$cof$1@dont-email.me> <lojfg6$i56$2@dont-email.me> <lokbfi$vac$1@dont-email.me> <lokfoe$q6k$1@dont-email.me> <lokjjc$o0v$1@dont-email.me> <loknef$inh$1@dont-email.me> <1892446.4VnW0yGc5p@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Sun, 29 Jun 2014 20:24:43 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="ec48d434a6137c1ee5d08a17955368ae"; logging-data="31736"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nE1S+Sr9EL+rJNeJRQ9LMKz9qhnmqH0I=" |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
| In-Reply-To | <1892446.4VnW0yGc5p@PointedEars.de> |
| Cancel-Lock | sha1:HHB6ibv5IMhWHcQRZu1xLXorgN0= |
| Xref | csiph.com comp.lang.javascript:25123 |
Show key headers only | View raw
On 06/28/2014 11:53 PM, Thomas 'PointedEars' Lahn wrote: > > [5] /…(?= [A-Z])/g (zero-length positive lookahead) does not appear to > make sense when you want to match/filter words. Why would you only > match words that precede a word starting with a capital letter? > What about multiple spaces, tabs, and newlines? I am trying to identify German adjectives in a text. I thought that if I made an array of all the words that appeared before a noun (always capitalized in German) and then removed definite and indefinite articles, personal pronouns and other common words such as "von" etc I could then check the remaining words against an array of German adjectives. I would be grateful if someone could show me a better way. > > In order to filter out words, simply match on them or replace them. There > is no need for array iteration. I have explained why I think there is a need for array iteration above > Please post using your real name. Please don't think I'm being rude, but is your real name Thomas 'PointedEars' Lahn? Steve Young (from my Thunderbird newsreader)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Cannot manipulate array produced with string.match SteveYoungTbird <stephen.young@chello.at> - 2014-06-27 09:17 +0200
Re: Cannot manipulate array produced with string.match Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-27 10:02 +0000
Re: Cannot manipulate array produced with string.match SteveYoungTbird <stephen.young@chello.at> - 2014-06-27 20:00 +0200
Re: Cannot manipulate array produced with string.match Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-27 19:13 +0000
Re: Cannot manipulate array produced with string.match SteveYoungTbird <stephen.young@chello.at> - 2014-06-27 22:18 +0200
Re: Cannot manipulate array produced with string.match SteveYoungTbird <stephen.young@chello.at> - 2014-06-27 23:24 +0200
Re: Cannot manipulate array produced with string.match Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-28 01:07 +0000
Re: Cannot manipulate array produced with string.match Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-28 01:16 +0000
Re: Cannot manipulate array produced with string.match Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-06-28 23:53 +0200
Re: Cannot manipulate array produced with string.match SteveYoungTbird <stephen.young@chello.at> - 2014-06-29 22:24 +0200
Re: Cannot manipulate array produced with string.match Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-06-29 23:19 +0200
Re: Cannot manipulate array produced with string.match JJ <jj4public@vfemail.net> - 2014-06-27 19:31 +0700
csiph-web