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 <http://www.w3.org/TR/REC-xml>.
24
25 Also contains the regular expressions for the following tokens from the
26 XML Namespaces spec at http://www.w3.org/TR/REC-xml-names
27 <http://www.w3.org/TR/REC-xml-names>: NCNameChar, NCName, QName, Prefix
28 and LocalPart.
29
31 Original Author is Enno Derksen <enno@att.com>
32
33 Please send bugs, comments and suggestions to T.J. Mather
34 <tjmather@tjmather.com>
35
36
37
38perl v5.12.0 2001-06-20 XML::RegExp(3)