{
    "mode": "perldoc",
    "parameter": "XML::LibXML::RegExp",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ARegExp/json",
    "generated": "2026-06-13T07:26:29Z",
    "synopsis": "use XML::LibXML;\nmy $compiledre = XML::LibXML::RegExp->new('[0-9]{5}(-[0-9]{4})?');\nif ($compiledre->isDeterministic()) { ... }\nif ($compiledre->matches($string)) { ... }\n$compiledre = XML::LibXML::RegExp->new( $regexpstr );\n$bool = $compiledre->matches($string);\n$bool = $compiledre->isDeterministic();",
    "sections": {
        "NAME": {
            "content": "XML::LibXML::RegExp - XML::LibXML::RegExp - interface to libxml2 regular expressions\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use XML::LibXML;\nmy $compiledre = XML::LibXML::RegExp->new('[0-9]{5}(-[0-9]{4})?');\nif ($compiledre->isDeterministic()) { ... }\nif ($compiledre->matches($string)) { ... }\n\n$compiledre = XML::LibXML::RegExp->new( $regexpstr );\n$bool = $compiledre->matches($string);\n$bool = $compiledre->isDeterministic();\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a perl interface to libxml2's implementation of regular expressions, which are used e.g.\nfor validation of XML Schema simple types (pattern facet).\n",
            "subsections": [
                {
                    "name": "new",
                    "content": "$compiledre = XML::LibXML::RegExp->new( $regexpstr );\n\nThe constructor takes a string containing a regular expression and returns a compiled regexp\nobject.\n"
                },
                {
                    "name": "matches",
                    "content": "$bool = $compiledre->matches($string);\n\nGiven a string value, returns a true value if the value is matched by the compiled regular\nexpression.\n"
                },
                {
                    "name": "isDeterministic",
                    "content": "$bool = $compiledre->isDeterministic();\n\nReturns a true value if the regular expression is deterministic; returns false otherwise.\n(See the definition of determinism in the XML spec\n(<http://www.w3.org/TR/REC-xml/#determinism>))\n"
                }
            ]
        },
        "AUTHORS": {
            "content": "Matt Sergeant, Christian Glahn, Petr Pajas\n",
            "subsections": []
        },
        "VERSION": {
            "content": "2.0134\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "2001-2007, AxKit.com Ltd.\n\n2002-2006, Christian Glahn.\n\n2006-2009, Petr Pajas.\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "This program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
            "subsections": []
        }
    },
    "summary": "XML::LibXML::RegExp - XML::LibXML::RegExp - interface to libxml2 regular expressions",
    "flags": [],
    "examples": [],
    "see_also": []
}