ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Cc: pragma@wxs.nl, ntg-context@ntg.nl
Subject: Re: newbi: config
Date: Thu, 6 Jun 2002 13:40:34 +0200	[thread overview]
Message-ID: <20020606134034.12feaf26.taco@elvenkind.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0206061201001.20782-100000@z1.physik.fu-berlin.de>

Oops, my mistake. But even better is:

s/(.*)texutil.*?$/$1/i

(which is what I *meant* all along :-))

The advantage is that this doesnt depend on the path separator.

On Thu, 6 Jun 2002 12:06:31 +0200 (CEST)
"Tobias Burnus" <tobias.burnus@physik.fu-berlin.de> wrote:
> ~> perl -e 'my $foo = "/foo/texutil/bar/texutil.pl"; $foo =~ s/texutil.*?$//i; print "$foo\n";'
> /foo/
> ~> perl -e 'my $foo = "/foo/texutil/bar/texutil.pl"; $foo =~ s/texutil[^\/]*$//i; print "$foo\n";'
> /foo/texutil/bar/
> 
> 
> Tobias

-- 
groeten,

Taco


  reply	other threads:[~2002-06-06 11:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5.1.0.14.1.20020606111535.0346cd20@server-1>
2002-06-06 10:06 ` Tobias Burnus
2002-06-06 11:40   ` Taco Hoekwater [this message]
2002-06-04 19:02 Eros Albertazzi
2002-06-05  7:59 ` Tobias Burnus
2002-06-05 11:01   ` Eros Albertazzi
2002-06-05 21:52     ` Hans Hagen
     [not found] ` <Pine.LNX.4.44.0206050954160.22693-100000@hils.physik.fu-be rlin.de>
2002-06-05 20:05   ` Hans Hagen
2002-06-06  7:55     ` Tobias Burnus
2002-06-06  8:24       ` Taco Hoekwater
2002-06-06  8:48         ` Hans Hagen
2002-06-06  8:54         ` Tobias Burnus
2002-06-05 21:54 ` Hans Hagen
2002-06-07  9:09   ` Eros Albertazzi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020606134034.12feaf26.taco@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).