PCRE - CompWisdom
About us  |  Why use us?  |  Press  |  Contact us

 

Topic: PCRE



  
 PCRE - Perl Compatible Regular Expressions
The PCRE library is free, even for building commercial software.
PCRE has its own native API, as well as a set of wrapper functions that correspond to the POSIX regular expression API.
Finally, a precompiled Windows port of PCRE is available, courtesy the GnuWin32 project.
http://www.pcre.org

  
 SourceForge.net: File Release Notes and Changelog
PCRE is being used in one environment where strchr() is not available.
PCRE was failing to diagnose unlimited repeats of subpatterns that could match the empty string as in /(a*)*/.
PCRE wasn't doing the "first character" optimization for patterns starting with \b or \B, though it was doing it for other lookbehind assertions.
http://sourceforge.net/project/shownotes.php?release_id=162039

  
 [No title]
PCRE has its own native API, but a set of "wrapper" functions that are based on the POSIX API are also supplied in the library libpcreposix.
Building PCRE on a Unix system ------------------------------ To build PCRE on a Unix system, first run the "configure" command from the PCRE distribution directory, with your current directory set to the directory where you want the files to be created.
For example, suppose you have unpacked the PCRE source into /source/pcre/pcre-xxx, but you want to build it in /build/pcre/pcre-xxx: cd /build/pcre/pcre-xxx /source/pcre/pcre-xxx/configure If you want to make use of the experimential, incomplete support for UTF-8 character strings in PCRE, you must add --enable-utf8 to the "configure" command.
http://www.supply-it.com/1/srclib/pcre/README

  
 [No title]
PCRE_ERROR_BADMAGIC (-4) PCRE stores a 4-byte "magic number" at the start of the compiled code, to catch the case when it is passed a junk pointer and to detect when a pattern that was compiled in an environment of one endianness is run in an environment with the other endianness.
From release 6.0, PCRE offers a second matching function, pcre_dfa_exec(), which matches using a different algorithm that is not Perl-compatible.
Note, however, that PCRE's interpretation of \G, as the start of the current match, is subtly different from Perl's, which defines it as the end of the previous match.
http://www.pcre.org/pcre.txt

  
 PCRE(3)
PCRE assumes by default that it will run in an environment where the character code is ASCII (or UTF-8, which is a superset of ASCII).
PCRE implements backtracking while matching by making recursive calls to an internal function called match().
Internally, PCRE has a function called match() which it calls repeatedly (possibly recursively) when performing a matching operation.
http://h30097.www3.hp.com/docs/iass/OSIS_63/MAN/MAN3/0527____.HTM

  
 pcretest
$ pcretest PCRE version 4.00 08-Jan-2003 re> /^abc(\d+)/ data> abc123 0: abc123 1: 123 data> xyz No match If the strings contain any non-printing characters, they are output as \0x escapes, or as \x{...} escapes if the /8 modifier was present on the pattern.
If the pattern is studied, the results of that are also output.
This modifier also causes any non-printing characters in output strings to be printed using the \x{hh...} notation if they are valid UTF-8 sequences.
http://gd.tuwien.ac.at/linuxcommand.org/man_pages/pcretest1.html

  
 Apache2 trunk/srclib/pcre/internal.h
Instead we make use of the maximum sizes that are available at 070 preprocessor time in standard C environments.
I tried "uchar", but it causes problems on Digital 093 Unix, where it is defined in sys/types, so use "uschar" instead.
Otherwise, include an emulating function for those systems that have 115 neither (there some non-Unix environments where this is the case).
http://lxr.webperf.org/source.cgi/srclib/pcre/internal.h

  
 PCRE for Lua 4.0.1
To compile the pcre4lua module, the original PCRE header and library files should already be installed on your system.
It is written and tested for PCRE versions 3.9 and 4.1 but it should be fairly easy to adapt or extend it for other versions.
This module offers a simple Lua wrapper for the regular expression matching functionality that is provided by the PCRE library.
http://members.chello.nl/~w.couwenberg/pcre4lua.htm

  
 XML/TA library for glib2 and pcre -
Since the RE matching is a two-phase process there are a number of ways to combine the difference at pcre_compile with that of pcre_exec - one could for instance recheck (*regex=='*') later or one could memorize the pcre_compile flag being non-empty and check for it later (i.e.
RE vs. XP The "RE" stands for "Regular Expression" and "XE" is shorthand for "XPath Element" where the latter uses strcmp/strstr style routines to do the actual pattern matching.
The leading star however will turn on substring-matches and so a match-pattern "*name" will match both "name" and "xnames" as strings.
http://xmlg.sourceforge.net/checking.html

  
 PCRE Global/Substitutions/Split Specification
Upon error, a value less than 0 is returned as described in the PCRE manpage.
int pcre_sub_size(const pcre *external_re, const pcre_sub *external_ss, int length, int * ovector, int olength, int matchcount);
Upon success, the number of bytes written is returned (including the trailing NULL byte).
http://www.cs.pdx.edu/~postj/contest/pcregsub.html

  
 Postfix PCRE Support
Regular expression tables such as pcre: or regexp: are not allowed to do $number substitution in lookup results that can be security sensitive: currently, that restriction applies to the local aliases(5) database or the virtual(8) delivery agent tables.
When Postfix searches a pcre: or regexp: lookup table, each pattern is applied to the entire input string.
A description of how to use pcre tables, including examples, is given in the pcre_table(5) manual page.
http://www.tangletoys.com/PCRE_README.html

  
 PCRE Open Source Library for Perl Compatible Regular Expressions
The library is also included with many Linux distributions as a shared.so library and a.h header file.
PCRE implements almost the entire Perl 5 regular expression syntax.
Many people have derived libraries from PCRE to make it compatible with other programming languages.
http://www.regular-expressions.info/pcre.html

  
 Apache2 trunk/srclib/pcre/pcreposix.c
009 010 This module is a wrapper that provides a POSIX API to the underlying PCRE 011 functions.
See 008 the file Tech.Notes for some information on the internals.
We can just 142 look them up in a table to turn them into POSIX-style error codes.
http://lxr.webperf.org/source.cgi/srclib/pcre/pcreposix.c

  
 [No title]
The portion of the string that was matched, and also any captured substrings, are returned via the \fIpmatch\fR argument, which points to an array of \fInmatch\fR structures of type \fIregmatch_t\fR, containing the members \fIrm_so\fR and \fIrm_eo\fR.
I have implemented only those option bits that can be reasonably mapped to PCRE native options.
The header for these functions is supplied as \fBpcreposix.h\fR to avoid any potential clash with other POSIX libraries.
http://www.nondot.org/MagicStats/Current/Source/PCRE/pcreposix.3

  
 PME (PCRE Made Easy) - C++ PCRE Wrapper Library
PME is a C++ wrapper around the PCRE library.
It has been designed to emulate Perl regular expression in both syntax and behaviour.
PME (PCRE Made Easy) - C++ PCRE Wrapper Library
http://xaxxon.slackworks.com/pme

  
 pcre version 6.3 for Mac OSX 10.4 Tiger
long_description The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as PerlÊ5.
PCRE has its own native API, as well as a set of wrapper functions that correspond to the POSIX regular expression API.
Please add your own notes and comments for this ported software here:
http://pcre.darwinports.com

  
 RPM resources for: pcre
PCRE is a library of functions to support regular expressions whose syntax and semantics are as close as possible to those of the Perl 5 language.
Header files, static libraries, and documentation for pcre.
http://user.cs.tu-berlin.de/~ccorn/software/rpm/packages/pcre.en.html

  
 Regular expression - Wikipedia, the free encyclopedia
The integration of regular expressions in most computer languages is still very poor and, even though Perl's regular expression integration is one of the best around, part of the effort in the design of the future Perl6 is improving this integration.
TPerlRegEx Open source Delphi VCL component based on PCRE (included)
Philip Hazel developed pcre (Perl Compatible Regular Expressions) which attempts to closely mimic Perl's regular expression functionality, and is used by many modern tools such as Python, PHP, and Apache.
http://en.wikipedia.org/wiki/Regular_expression

  
 PCRE for Windows (Win32)
PCRE 5.0 Source code, with a make file for nmake.
PCRE 4.4 Source code, with a make file for nmake.
A few developers have asked me about the steps to build PCRE on the Win32 Platform with Visual C++.
http://www.psyon.org/projects/pcre-win32

  
 [No title]
# #---------------------------------------------------------------------------# ############################################################################# # PCRE is developed on a Unix system.
I do not use Windows or Macs, and know # nothing about building software on them.
Although the code of PCRE should # be very portable, the building system in this Makefile is designed for Unix # systems, with the exception of the mingw32 stuff just mentioned.
http://www.hypermail.org/hypermail/source/src/pcre/Makefile.in

  
 SecurityTracker.com Archives - PCRE Heap Overflow May Let Users Execute Arbitrary Code
The flaw resides in 'pcre_compile.c' where certain quantifier values are not properly validated to ensure the proper values.
(Apache Issues Fix) PCRE Heap Overflow May Let Users Execute Arbitrary Code
(Red Hat Issues Fix) PCRE Heap Overflow May Let Users Execute Arbitrary Code (bugzilla@redhat.com)
http://www.securitytracker.com/alerts/2005/Aug/1014744.html

  
 PCRE-OCaml
PCRE, an efficient C-library for pattern matching with Perl-style regular expressions.
Markus Mottl Last modified: Sun Dec 3 14:19:09 PST 2000
http://pcre-ocaml.sourceforge.net

  
 www.daemon.de - PCRE
Welcome to the home of PCRE++ version 0.9.5
PCRE++ is a C++ wrapper-class for the great library PCRE.
http://www.daemon.de/PCRE

  
 PCRE library (SSA:2005-242-01)
The PCRE library is also provided in an initial installation by the aaa_elflibs package, so if your system has a /usr/lib/libpcre.so.0 symlink, then you should install this updated package even if the PCRE package itself is not installed on the system.
Any applications that use PCRE to process untrusted regular expressions may be exploited to run arbitrary code as the user running the application.
New PCRE packages are available for Slackware 8.1, 9.0, 9.1, 10.0, 10.1, and -current to fix a security issue.
http://www.linuxcompatible.org/story54048.html

  
 PCRE
Since this library is used in a large number of packages, including apache2, php4, exim, postfix and similar,...
This fixes a vulnerability, which potentially can be exploited by malicious people to compromise a vulnerable system.
http://www.spikesource.com/info/alerts.php?c=PCRE&v=5.0

  
 Debian -- pcre-ocaml
The following binary packages are built from this source package:
OCaml bindings for PCRE (Perl Compatible Regular Expression)
http://packages.debian.org/testing/source/pcre-ocaml

  
 [No title]
You might want to do this if you are using a non-standard locale.
There is a complete description of the PCRE API in the.\" HREF \fBpcreapi\fR.\" page.
.PP.SM.br.B const unsigned char *pcre_maketables(void);.SH DESCRIPTION.rs.sp This function builds a set of character tables which can be passed to \fBpcre_compile()\fR to override PCRE's internal, built-in tables (which were made by \fBpcre_maketables()\fR when PCRE was compiled).
http://www.hypermail.org/source/src/pcre/doc/pcre_maketables.3

  
 Trenduo: What's HOT in Web Hosting?
Describes the basics as well as PCRE's special features such as ungreedy matching, lookaheads or the evaluation modifier.
Serving XHTML with the correct mime type using PHP - Describes how to send XHTML with the correct mime type safely using PHP.
http://trenduo.com/modules.php?name=Phpee

  
 Pcre heap buffer overflow FC3 - Fedora - Xatrix Security
API, but a set of "wrapper" functions that are based on the POSIX API
provides a POSIX calling interface to PCRE; the regular expressions
Backport patch to fix heap overflow, CAN-2005-2491, Fedora Core 3.
http://www.xatrix.org/advisory.php?s=6771

  
 PCRE test 1
If this program is run, the following will be printed:
This is a simple sample program to demonstrate the use of pcre_compile() and pcre_exec (which are functions of PCRE).
René Nyffenegger on Oracle - Most wanted - Feedback
http://www.adp-gmbh.ch/cpp/regexp/pcre/test_1.html

  
 LinuxDevCenter.com: Problems in PCRE, the Linux Kernel, and SILC
PCRE, the Perl Compatible Regular Expressions library, is vulnerable to a buffer overflow that could result in arbitrary code being executed with the permissions of the user running the application linked against the library.
PCRE is reported to be used by Analog, Python, PHP,
All users of PCRE should upgrade to version 6.2 or newer and should watch for new versions of any application that us linked against PCRE.
http://www.linuxdevcenter.com/pub/a/linux/2005/09/15/security-alerts.html

  
 Companies - Specializing - Pcre Software
The program is made for creating and processing 50 types text.
Specializes in: regular, advasar, search, compatible, advasar pro, find, pcre, grep, perl, lookup, replace, html, expression, egrep, wildcard
Specializes in: search, hex file viewer, unzip, grep, buerg, column marking, two up, list, winzip, pkunzip, pkzip, printing, binary, list com, vernon, hex viewer, recfm, regex, download, ruler, 4dos, expressions, hex dump, file viewer, prineas, ebcdic, regular, pcre, ascii, octal, shareware, regexp, lrecl, cctype
http://www.soft411.org/companies/pcre.html

  
 Wim's Thingumathigs page
What it is: A simple library for Lua 4.0.1 that enables the powerful regular expression matching capabilities of the PCRE library.
It is tested for PCRE versions 3.9 and 4.1 but is easily tweaked to fit your needs.
What it is: A Lua package that implements a dictionary type.
http://members.chello.nl/~w.couwenberg

  
 freshmeat.net: Project details for PCRE++
PCRE++ is a C++ wrapper-class for PCRE library (Perl Compatible Regular Expressions).
It allows you to use Perl-alike regular expressions in your C++ applications.
http://freshmeat.net/projects/pcrepp

  
 Using Regular Expressions with PHP
These functions are only available if your version of PHP was compiled with support for the PCRE library, and the PCRE library is installed on your web server.
The second set of regex functions start with
http://www.regular-expressions.info/php.html

  
 PCRE Regular Expression Heap Overflow Vulnerability
PHP: Vulnerabilities in included PCRE and XML-RPC libraries (Gentoo)
Gnumeric: Heap overflow in the included PCRE library (Gentoo)
Python: Heap overflow in the included PCRE library (Gentoo)
http://www.securityfocus.com/bid/14620/references

  
 pcre_exec(3) - Perl-compatible regular expressions
There is a complete description of the PCRE native API in the
The flag bits are PCRE_EXTRA_STUDY_DATA, PCRE_EXTRA_MATCH_LIMIT, PCRE_EXTRA_CALLOUT_DATA, and PCRE_EXTRA_TABLES.
http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=pcre_exec

  
 FrSIRT Advisories - Fedora Security Update Fixes PCRE Buffer Overflow Vulnerability / Exploit
This flaw is due to an integer overflow error in "pcre_compile.c" when handling specially crafted regular expressions, which could be exploited by remote attackers (able to send regular expressions) to execute arbitrary commands with the privileges of the application using the vulnerable library.
Fedora has released updated packages to correct a vulnerability identified in PCRE.
FrSIRT Advisories - Fedora Security Update Fixes PCRE Buffer Overflow Vulnerability / Exploit
http://www.frsirt.com/english/advisories/2005/1527

  
 Electrochemical Science and Technology Information Resource --- Reviews
PCRE: Handbook on the physics and chemistry of rare earths, 33 volumes
http://electrochem.cwru.edu/estir/chap.htm

  
 Re: [PHP-DEV] [PATCH] ereg to pcre conversion :: ASPN Mail Archive :: php-Dev
Re: [PHP-DEV] [PATCH] ereg to pcre conversion :: ASPN Mail Archive :: php-Dev
Re: [PHP-DEV] [PATCH] ereg to pcre conversion
http://aspn.activestate.com/ASPN/Mail/Message/php-Dev/1417228

  
 Secunia - Advisories - Mandriva update for pcre
Secunia - Advisories - Mandriva update for pcre
http://secunia.com/advisories/16581

  
 OpenNET security: SUSE Security Announcement: pcre integer overflows
3) Special Instructions and Notes Please make sure you restart services linked against the pcre library (apache, exim, postfix).
OpenNET security: SUSE Security Announcement: pcre integer overflows
http://www.opennet.ru/base/linux/1125506285_1361.txt.html

Compwisdom
 About us   |  Why use us?   |  Press   |  Contact us

 Copyright © 2006 CompWisdom.com Usage implies agreement with terms.