Re: regular expression
2004-03-30 04:34:09
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
|
|
|