Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Dec 2010 02:32:38 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Gary Kline <kline@thought.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: regex question....
Message-ID:  <20101205023238.0ffcef3e.freebsd@edvax.de>
In-Reply-To: <20101205012430.GA29153@thought.org>
References:  <20101205002602.GA27499@thought.org> <AANLkTinXsSHj4kLha9SgR4T0Rn7TvH1cKmZ-pYe%2BgC-k@mail.gmail.com> <20101205012430.GA29153@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 4 Dec 2010 17:24:30 -0800, Gary Kline <kline@thought.org> wrote:
> 	So I just missed the "*"? 

Yes. In regex, * means "any amount of", if I remember correctly.
So you don't have to specify precisely how many numbers there
are.

How many lights? :-)



> Didn't need to escape the [ or ] ?

No, as you want them in their regex meaning, "in the range of",
not literal [ and ].



> 	PS: See, this is why I keep cheatsheets.  ;)

That's the fat green book on my shelf. :-)


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101205023238.0ffcef3e.freebsd>