Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #40878

Re: trying to match a "word", having difficulty with a "Lookbehind assertion"

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups comp.lang.javascript
Subject Re: trying to match a "word", having difficulty with a "Lookbehind assertion"
Date 21 May 2022 16:08:32 GMT
Organization Stefan Ram
Lines 13
Expires 1 Apr 2023 11:59:58 GMT
Message-ID <generalization-20220521170814@ram.dialup.fu-berlin.de> (permalink)
References <t6aath$15hc$1@gioia.aioe.org> <d4isn07io5cf.h6kqtics0wrc.dlg@40tude.net>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de GLa88+rml1+sfhssIIL+mQSxhWDZGOSVV7Kzr5xqKXPR+Y
X-Copyright (C) Copyright 2022 Stefan Ram. All rights reserved. Distribution through any means other than regular usenet channels is forbidden. It is forbidden to publish this article in the Web, to change URIs of this article into links, and to transfer the body without this notice, but quotations of parts in other Usenet posts are allowed.
X-No-Archive Yes
Archive no
X-No-Archive-Readme "X-No-Archive" is set, because this prevents some services to mirror the article in the web. But the article may be kept on a Usenet archive server with only NNTP access.
X-No-Html yes
Content-Language en-US
Accept-Language de-DE, en-US, it, fr-FR
Xref csiph.com comp.lang.javascript:40878

Show key headers only | View raw


JJ <jj4public@gmx.com> writes:
>For matching just

  Probably the OP needs some generalization, but only he knows
  which generalization exactly. For one example, on the console,

|>|"alpha beta g****d*** eps".replace( /.*?\b([\w*]*\*[\w*]).*/, '$1' )
| |
|<|"g****d***"

  .

Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread


csiph-web