Questions tagged [pcre]

44 questions
13
votes
1 answer

Why is it unnecessary to escape "/" in Nginx regular expressions?

So I've made it a thing to finally learn about regular expressions. Normally when working with regular expressions it is necessary to escape delimiters (like "/") with a "\". But when I'm using regular expressions in Nginx it would seem that "/" is…
Harold Fischer
  • 269
  • 3
  • 8
13
votes
4 answers

mod_security - PCRE limits exceeded

Just about on every request I am getting the following error: Rule execution error - PCRE limits exceeded (-8): (null). After a bunch of googling the only solutions seem to be a) Add the following in your httpd.conf SecPcreMatchLimit…
ParoX
  • 302
  • 1
  • 6
  • 21
12
votes
2 answers

What are PCRE limits?

In ModSecurity there are PCRE limits exceeded errors. I know I can fix this by setting rules such as: SecPcreMatchLimit 150000 SecPcreMatchLimitRecursion 150000 But, what are these rules actually doing? What does the PCRE limit recursion set to…
user101130
6
votes
1 answer

Apache HTTPd 2.2 is ignoring LocationMatch regex

I am trying to create a Reverse Proxy that match every URL except one in Apache 2.2. It works on Apache 2.4 (Centos 7), but not in Apache 2.2 (Centos 6.6) ... # Do not modify this ProxyPass…
cactuschibre
  • 171
  • 5
6
votes
3 answers

Fixing Shared PCRE Library on CentOS

This is less a question about PCRE, and more a question about updating shared libraries. The distribution of CentOS I'm running only allows for yum upgrades to version 6.6, or somewhere similar. I'm installing an issue tracker that requires PCRE…
Craig Otis
  • 287
  • 1
  • 3
  • 11
6
votes
2 answers
5
votes
2 answers

PECL install/phpize error

This is my PHP setup ################################################################## # setup PHP ################################################################## # we use this to make inline CSS in newsletter yum install php php-tidy php-xml…
Gajus
  • 831
  • 5
  • 15
  • 27
4
votes
1 answer

pcregrep is not matching regex (multiline?)

I don't understand why is first two is a match/hit, yet third is a miss? -bash-3.2# cat 1361492805.M171838P41834.mx1.alexus.biz\,S\=12921\:2\,Sijm | pcregrep -q '.*languager.*' ; echo $? 0 -bash-3.2# cat…
alexus
  • 12,342
  • 27
  • 115
  • 173
4
votes
1 answer

How to get pcre 8.x on Ubuntu 10.04 (Linode)

I'm trying to set up Bug Genie 3.x on my Linode server, and it is complaining because I have pcre 7.8 instead of 8.x. Doing an apt-get update and upgrade doesn't help and says that I have the latest version of libpcre3. Am I supposed to install…
devrelm
  • 143
  • 4
3
votes
1 answer

grant PHP permission to allocate executable memory

I received this message during an iTop installation. If you google this, it appears on commercial websites above their content. Warning: filter_var(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely because of security…
Anthony Spano
  • 31
  • 1
  • 3
3
votes
0 answers

Postfix: Enforce sender address for some users only

I am looking for an option to enforce an envelope sender address in postfix for selected users, only. E.g., I want to permit user1@example.com to send mails as user1@example.com, only, while all other users shall be able to choose their from…
i3i5i7
  • 61
  • 3
3
votes
3 answers

PHP Kohana CentOS 5

Trying to deploy a Kohana based project in CentOS 5. Installed PHP 5.3.1 but still getting the following error. Warning: preg_match() [function.preg-match]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0…
Undefined
2
votes
1 answer

Multi-line PCRE w\ lookhead, count matches

I am trying to perform a regex that matches if both the word cat AND dog are in the regex with multi-line support matches cat asdjfaldsfj dog #### does NOT match cat adfasdf8989 #### matches dog adlsjf88989 cat #### matches cat asdf8a89sdf8 a…
SquidZ00
  • 21
  • 2
2
votes
2 answers

Upgrade PCRE to 8.40 on CentOS 7

When I do yum installed | grep pcre I get: pcre.x86_64 8.32-15-el7_2.1 @updates pcre-devel.x86_64 8.32-15-el7_2.1 @updates How do I upgrade these to the most recent versions (currently 8.40)? Do I have to uninstall the…
god_is_love
  • 143
  • 1
  • 6
2
votes
2 answers

Clamd won't start after update

Since updating clamd to 0.99.2-1.e15 on our RedHat 5 x86_64 system, it has failed to start successfully. The error we get is as follows: LibClamAV Error: cli_pcre_compile: PCRE compilation failed at offset 52: unrecognized character after…
1
2 3