[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] PCRE expression question
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] PCRE expression question
- From: Paul van Eldijk <P.vanEldijk (at) uci.ru.nl>
- Date: Wed, 18 Apr 2007 17:43:31 +0200
- Organization: Universitair Centrum Informatievoorziening
- References: <6C2B32F89382AF42875672B6F5BEB68202C99BD3 (at) MERCMBX07.na.sas.com>
- User-agent: Thunderbird 1.5.0.5 (Windows/20060719)
Galen Johnson schreef:
Hey,
I know I'm just missing something simple and it's probably something I've overlooked but I'm having an issue with a regex in one of my port tests...
This works:
PORT "LOCAL=%[\.:](8611|8621|8631)$" state=LISTEN
But this doesn't...
PORT "LOCAL=%[\.:]86?1$" state=LISTEN
6? matches zero or one 6, so that is not what you want.
6. matches a six, followed by any character
6[1-3] matches a 6 followed by a one, two or three.
So you want:
PORT "LOCAL=%[\.:]86[1-3]1$" state=LISTEN
HTH,
Paul