Top "Pcre" questions

Perl Compatible Regular Expressions(PCRE) was initially developed as a regex engine for PERL, but grew into a library that many other languages (like PHP and Apache) use for their regex.

Non greedy (reluctant) regex matching in sed?

I'm trying to use sed to clean up lines of URLs to extract just the domain. So from: http://www.…

regex sed pcre greedy regex-greedy
PHP regular expressions: No ending delimiter '^' found in

I've been having some trouble with regular expressions. This is my code $pattern = "^([0-9]+)$"; if (preg_match($pattern, $input)) echo "…

php regex preg-match pcre
Invert match with regexp

With PCRE, how can you construct an expression that will only match if a string is not found. If I …

regex pcre
Apache installation; libpcre error

When installing Apache on Ubuntu 11.10, I get the following error: configure: error: APR not found. Please read the documentation. I …

apache pcre
preg_match and UTF-8 in PHP

I'm trying to search a UTF8-encoded string using preg_match. preg_match('/H/u', "\xC2\xA1Hola!", $a_…

php unicode utf-8 pcre
How can I convert ereg expressions to preg in PHP?

Since POSIX regular expressions (ereg) are deprecated since PHP 5.3.0, I'd like to know an easy way to convert the old …

php preg-replace preg-match pcre ereg
Linker error LNK2038: mismatch detected in Release mode

I am trying to port a small app of mine from Win XP and VS 2005 to Win 7 and VS 2010. The …

c++ visual-studio-2010 linker pcre release-mode
How to change PHP's eregi to preg_match

Possible Duplicate: How can I convert ereg expressions to preg in PHP? I need help, below is a small VERY …

php email pcre posix-ere
Error installing PCRE

I'm trying to install PCRE on my Ubuntu 11.10 Server. When I run the "make" command, I get a really long …

linux gcc ubuntu pcre libtool
Get string between two strings

My string is: "reply-234-private", i want to get the number after "reply-" and before "-private", it is "234". I have …

php regex preg-match pcre