XML::RegExp - Regular expressions for XML tokens
use XML::RegExp;
if ($my_name =~ /^$XML::RegExp::Name$/)
{
# $my_name is a valid XML 'Name'
}
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.
Please send bugs, comments and suggestions to T.J. Mather <tjmather@tjmather.com>
|
Закладки на сайте Проследить за страницей |
Created 1996-2025 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |