[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: Charles Goyard <charles.goyard (at) orange-ftgroup.com>
- Date: Wed, 18 Apr 2007 17:54:00 +0200
- References: <6C2B32F89382AF42875672B6F5BEB68202C99BD3 (at) MERCMBX07.na.sas.com>
- User-agent: Mutt/1.5.13 (2006-08-11)
Hi,
Galen Johnson wrote :
>
> This works:
>
> PORT "LOCAL=%[\.:](8611|8621|8631)$" state=LISTEN
>
> But this doesn't...
>
> PORT "LOCAL=%[\.:]86?1$" state=LISTEN
>
> I'm hoping fresh eyes will see what stupid thing I've missed...
That's because "?" matches 0 or 1 character, and applies to the 6. Try :
PORT "LOCAL=%[\.:]86[0-9]1$" state=LISTEN
(means 86 then some number, then 1, then end)
? has not the same meaning in pcre than in shell.
--
Charles Goyard - charles.goyard (at) orange-ftgroup.com - (+33) 1 45 38 01 31
Orange Business Services - online multimedia // ingénierie