Re: Regex fails to complie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: users@xxxxxxxxxxxxxxxx
- Subject: Re: Regex fails to complie
- From: Eric Covener <covener@xxxxxxxxx>
- Date: Thu, 25 Aug 2016 16:27:18 -0400
- In-reply-to: <CAPBjAUhSrwwEFC3WQUyM3Gf=PXCT9TVViqk5yELyRO+dVppt6Q@mail.gmail.com>
- Reply-to: users@xxxxxxxxxxxxxxxx
On Thu, Aug 25, 2016 at 3:59 PM, Brian A. Davis <bridavis3@xxxxxxxxx> wrote:
> <If "%{REQUEST_URI} =~ /\.foo.com(?:\:\d{2,5}|\/.*)?$/">
The limitation is that you cannot use the separator inside the regex,
even when you escape it. It's a limitation in the expression engine
used for If, not the regex library.
You can use m#...# in your case.
--
Eric Covener
covener@xxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]