XML::RegExp(3pm)

XML::RegExp3pm

Regular expressions for xml tokens

Usage

 use XML::RegExp;
 if ($my_name =~ /^$XML::RegExp::Name$/)
 {
   # $my_name is a valid XML 'Name'
 }

Overview

This package contains regular expressions for the following XML tokens: BaseChar, Ideographic, Letter, Digit, Extender, CombiningChar, NameChar, EntityRef, CharRef, Reference, Name, NmToken, and AttValue.

The definitions of these tokens were taken from the XML spec (Extensible Markup Language 1.0) at <http://www.w3.org/TR/REC-xml>.

Also contains the regular expressions for the following tokens from the XML Namespaces spec at <http://www.w3.org/TR/REC-xml-names>: NCNameChar, NCName, QName, Prefix and LocalPart.

Releases

13 releases since Debian 3.0 (Woody); the text changed 5 times.

  1. 3.0
  2. 3.1–5.0
  3. 6.0
  4. 7–10
  5. 11–13
  6. Arch

Author

Original Author is Enno Derksen <[email protected]>

Please send bugs, comments and suggestions to T.J. Mather <[email protected]>

From perl-xml-regexp 0.04-6 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.