SYNOPSIS

 use XML::RegExp;

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

DESCRIPTION

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

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

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

AUTHOR

Original Author is Enno Derksen <[email protected]>

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