{"id":6789,"date":"2022-12-20T19:33:39","date_gmt":"2022-12-20T22:33:39","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/xmllibxmlregexp-man3\/"},"modified":"2022-12-20T19:33:39","modified_gmt":"2022-12-20T22:33:39","slug":"xmllibxmlregexp-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/xmllibxmlregexp-man3\/","title":{"rendered":"XML::LibXML::RegExp (man3)"},"content":{"rendered":"<h1 align=\"center\">XML::LibXML::RegExp<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#VERSION\">VERSION<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a><br \/> <a href=\"#LICENSE\">LICENSE<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">XML::LibXML::RegExp \u2212 XML::LibXML::RegExp \u2212 interface to libxml2 regular expressions<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">use XML::LibXML; <br \/> my $compiled_re = XML::LibXML::RegExp\u2212>new(&#8216;[0\u22129]{5}(\u2212[0\u22129]{4})?&#8217;); <br \/> if ($compiled_re\u2212>isDeterministic()) { &#8230; } <br \/> if ($compiled_re\u2212>matches($string)) { &#8230; } <br \/> $compiled_re = XML::LibXML::RegExp\u2212>new( $regexp_str ); <br \/> $bool = $compiled_re\u2212>matches($string); <br \/> $bool = $compiled_re\u2212>isDeterministic();<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This is a perl interface to libxml2\u2019s implementation of regular expressions, which are used e.g. for validation of <small>XML<\/small> Schema simple types (pattern facet). <b><br \/> new()<\/b><\/p>\n<p style=\"margin-left:17%;\">$compiled_re = XML::LibXML::RegExp\u2212>new( $regexp_str );<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">The constructor takes a string containing a regular expression and returns a compiled regexp object.<\/p>\n<p style=\"margin-left:11%;\">matches($string)<\/p>\n<p style=\"margin-left:17%;\">$bool = $compiled_re\u2212>matches($string);<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Given a string value, returns a true value if the value is matched by the compiled regular expression.<\/p>\n<p style=\"margin-left:11%;\"><b>isDeterministic()<\/b><\/p>\n<p style=\"margin-left:17%;\">$bool = $compiled_re\u2212>isDeterministic();<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Returns a true value if the regular expression is deterministic; returns false otherwise. (See the definition of determinism in the <small>XML<\/small> spec (<http:\/\/www.w3.org\/TR\/REC\u2212xml\/#determinism>))<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Matt Sergeant, Christian Glahn, Petr Pajas<\/p>\n<h2>VERSION <a name=\"VERSION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">2.0206<\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">2001\u22122007, AxKit.com Ltd.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">2002\u22122006, Christian Glahn.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">2006\u22122009, Petr Pajas.<\/p>\n<h2>LICENSE <a name=\"LICENSE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This program is free software; you can redistribute it and\/or modify it under the same terms as Perl itself.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  XML::LibXML::RegExp \u2212 XML::LibXML::RegExp \u2212 interface to libxml2 regular expressions <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3007,3158],"class_list":["post-6789","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-man3","tag-xmllibxmlregexp"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6789"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6789\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}