Amanda-Users

Re: regular expression

2004-03-30 04:34:09
Subject: Re: regular expression
From: Kristian Rink <krink AT pm-planc DOT de>
To: "pascal thomas" <thomas.pascal AT web DOT de>, amanda-users AT amanda DOT org
Date: Tue, 30 Mar 2004 11:31:19 +0200
Hi Pascal,...


On Tue, 30 Mar 2004 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]*$"


$ indicates the end-of-line (end of the string, in this case). A
construct like "[0-9]*" means that there might zero or more of the
specified characters may follow up, meaning this pattern should
match

Full-1
Full-14
Full-203
Full-5910
.
.
.

and so on. :)

Cheers,
Kris


-- 
Kristian Rink   -- Programmierung/Systembetreuung
planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
0176 24472771 * krink AT pm-planc DOT de

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