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


Groups > linux.debian.user > #247300

Re: extract values from a string

Path csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: extract values from a string
Date Sat, 16 Apr 2022 19:30:01 +0200
Message-ID <EcUpb-9aAx-1@gated-at.bofh.it> (permalink)
References <EcGvU-92e4-15@gated-at.bofh.it> <EcT9L-99V9-3@gated-at.bofh.it> <EcTjr-99Yk-11@gated-at.bofh.it>
X-Mailbox-Line From debian-user-request@lists.debian.org Sat Apr 16 17:24:34 2022
Old-Return-Path <greg@wooledge.org>
X-Amavis-Spam-Status No, score=-6.117 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5, RDNS_NONE=0.793, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -4.6
Mail-Followup-To debian-user@lists.debian.org
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Mailing-List <debian-user@lists.debian.org> archive/latest/788164
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/Ylr7vfMWRkqv/NWR@wooledge.org
Approved robomod@news.nic.it
Lines 9
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sat, 16 Apr 2022 13:24:13 -0400
X-Original-Message-ID <Ylr7vfMWRkqv/NWR@wooledge.org>
X-Original-References <27b9d57f-5387-5a56-2083-b9b1dbfe8100@bigcount.xyz> <CAJmb-Ykch8D4t2iDz_K-5GjauPU3xzta7G5NZG1psb3rxP7roA@mail.gmail.com> <Ylrq4aWK/lHoIhaN@tuxteam.de>
Xref csiph.com linux.debian.user:247300

Show key headers only | View raw


On Sat, Apr 16, 2022 at 06:12:17PM +0200, tomas@tuxteam.de wrote:
> FWIW, bash has an =~ operator for regex matching whithin [[ ]]. There are
> even special variables to pick up the capturing matches.
> 
> Not portable, but arrays (which have been warmly recommended around here)
> aren't, either.

Yes, the =~ operator *could* be used for some kinds of parsing.  I just
didn't think it was the best choice for this specific problem.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

extract values from a string wilson <info@bigcount.xyz> - 2022-04-16 04:40 +0200
  Re: extract values from a string Greg Wooledge <greg@wooledge.org> - 2022-04-16 05:10 +0200
  Re: extract values from a string Nicholas Geovanis <nickgeovanis@gmail.com> - 2022-04-16 18:10 +0200
    Re: extract values from a string <tomas@tuxteam.de> - 2022-04-16 18:20 +0200
      Re: extract values from a string Nicholas Geovanis <nickgeovanis@gmail.com> - 2022-04-16 18:50 +0200
      Re: extract values from a string Greg Wooledge <greg@wooledge.org> - 2022-04-16 19:30 +0200
    Re: extract values from a string Kent West <westk@acu.edu> - 2022-04-17 04:30 +0200
      Re: extract values from a string Greg Wooledge <greg@wooledge.org> - 2022-04-17 05:00 +0200
  Re: extract values from a string David Christensen <dpchrist@holgerdanske.com> - 2022-04-16 21:30 +0200
  Re: extract values from a string Ash Joubert <ash@transient.nz> - 2022-04-17 02:40 +0200
    Re: extract values from a string Ash Joubert <ash@transient.nz> - 2022-04-17 02:40 +0200
    Re: extract values from a string Greg Wooledge <greg@wooledge.org> - 2022-04-17 02:40 +0200
      Re: extract values from a string Ash Joubert <ash@transient.nz> - 2022-04-17 02:50 +0200

csiph-web