1XML::RegExp(3) User Contributed Perl Documentation XML::RegExp(3)
2
3
4
6 XML::RegExp - Regular expressions for XML tokens
7
9 use XML::RegExp;
10
11 if ($my_name =~ /^$XML::RegExp::Name$/)
12 {
13 # $my_name is a valid XML 'Name'
14 }
15
17 This package contains regular expressions for the following XML tokens:
18 BaseChar, Ideographic, Letter, Digit, Extender, CombiningChar,
19 NameChar, EntityRef, CharRef, Reference, Name, NmToken, and AttValue.
20
21 The definitions of these tokens were taken from the XML spec
22 (Extensible Markup Language 1.0) at <http://www.w3.org/TR/REC-xml>.
23
24 Also contains the regular expressions for the following tokens from the
25 XML Namespaces spec at <http://www.w3.org/TR/REC-xml-names>:
26 NCNameChar, NCName, QName, Prefix and LocalPart.
27
29 Original Author is Enno Derksen <enno@att.com>
30
31 Please send bugs, comments and suggestions to T.J. Mather
32 <tjmather@tjmather.com>
33
34
35
36perl v5.38.0 2023-07-21 XML::RegExp(3)