ocean.text.regex.PCRE

D Library Wrapper for PCRE regular expression engine.

Requires linking with libpcre (-lpcre).

Usage example:

import ocean.text.regex.PCRE;

auto pcre = new PCRE;

// Simple, one-off use
auto match = pcre.preg_match("Hello World!", "^Hello");

// Compile then reuse
auto regex = pcre.new CompiledRegex;
regex.compile("^Hello");
for ( int i; i < 100; i++ )
{
    auto match = regex.match("Hello World!");
}
More...

Members

Classes

CounterNamedTest
class CounterNamedTest
Undocumented in source.
PCRE
class PCRE

PCRE

Detailed Description

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).

Bear in mind this module provides bindings to an external library that has its own license, which might be more restrictive. Please check the external library license to see which conditions apply for linking.