From: Tobias Burnus <tobias.burnus@physik.fu-berlin.de>
Cc: NTG-ConTeXt <ntg-context@ntg.nl>
Subject: Re: newbi: config
Date: Thu, 6 Jun 2002 12:06:31 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.44.0206061201001.20782-100000@z1.physik.fu-berlin.de> (raw)
In-Reply-To: <5.1.0.14.1.20020606111535.0346cd20@server-1>
Hi,
On Thu, 6 Jun 2002, Hans Hagen wrote:
> > > or even
> > > $pm_path =~ s/texutil.*?$//i ;
> >Then better
> > $pm_path =~ s/texutil[^/]*$//i;
> are you sure about that? what excatly does this ^/ stand for ?
I ment [^\/] of cause.
[a] matches only "a" and [^a] matches all characters except "a".
Thus [^\/] should match all letters which are not "/" preventing problems
with paths which contain 'texutil:
~> 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
next parent reply other threads:[~2002-06-06 10:06 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 [this message]
2002-06-06 11:40 ` Taco Hoekwater
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=Pine.LNX.4.44.0206061201001.20782-100000@z1.physik.fu-berlin.de \
--to=tobias.burnus@physik.fu-berlin.de \
--cc=ntg-context@ntg.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).