Amanda-Users

Re: regular expression

2004-03-30 04:38:57
Subject: Re: regular expression
From: Toni Mueller <support-amanda AT oeko DOT net>
To: pascal thomas <thomas.pascal AT web DOT de>
Date: Tue, 30 Mar 2004 11:35:59 +0200
Hi,

On Tue, 30.03.2004 at 11:21:21 +0100, pascal thomas <thomas.pascal AT web DOT 
de> wrote:
> what exactly means the "*" and the $ in the following line?
> labelstr "^Full-[0-9][0-9]*$"

this should mean:

^  (start of string)
Full-  (this text verbatim)
[0-9]   (a digit)
[0-9]*  (zero or more occurrences of the expression noted
         before, ie, a digit)


See man 7 regex, man egrep


Best,
--Toni++


<Prev in Thread] Current Thread [Next in Thread>