W3C home > Mailing lists > Public > public-multilingualweb-lt-commits@w3.org > April 2013

CVS WWW/International/multilingualweb/lt/drafts/its20

From: CVS User fsasaki <cvsmail@w3.org>
Date: Mon, 29 Apr 2013 09:33:37 +0000
Message-Id: <E1UWkSn-0000yY-MD@gil.w3.org>
To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20
In directory gil:/tmp/cvs-serv3750

Modified Files:
	its20.html its20.odd 
Log Message:
added regex for checking regex, as examples, in allowed characters. See http://lists.w3.org/Archives/Public/public-multilingualweb-lt/2013Apr/0227.html 

--- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html	2013/04/29 09:22:17	1.398
+++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html	2013/04/29 09:33:37	1.399
@@ -3200,7 +3200,9 @@
               is, each character in the selected content <a href="#rfc-keywords" shape="rect">MUST</a> be
               included in the set specified by the regular expression.</p><p>The regular expression is the character class construct <code>charClass</code> defined as follows:</p><ul class="slist"><li><p><code>[1] charClass ::= singleCharEsc | charClassExpr | wildcardEsc</code></p></li><li><p><code>[2] singleCharEsc ::= '\' [nrt\|.?*+(){}#x2D#x5B#x5D#x5E]</code></p></li><li><p><code>[3] charClassExpr ::= '[' charGroup ']'</code></p></li><li><p><code>[4] charGroup ::= posCharGroup | negCharGroup</code></p></li><li><p><code>[5] posCharGroup ::= ( charRange | singleCharEsc )+</code></p></li><li><p><code>[6] charRange ::= seRange | xmlCharIncDash</code></p></li><li><p><code>[7] seRange ::= charOrEsc '-' charOrEsc</code></p></li><li><p><code>[8] charOrEsc ::= xmlChar | singleCharEsc</code></p></li><li><p><code>[9] xmlChar ::= [^\#x2D#x5B#x5D]</code></p></li><li><p><code>[10] xmlCharIncDash ::= [^\#x5B#x5D]</code></p></li><li><p><code>[11] negCharGroup ::= '^' posCharGroup</code></p></li><li><p><code>[12] wildcadEsc ::= '.'</code></p></li></ul><p>The <code>.</code> metacharacter matches also CARRIAGE RETURN (U+000D) and LINE FEED
               (U+000F). That is the <em>dot-all</em> option is set.</p><p>This construct is a sub-set of the <a href="http://www.w3.org/TR/xmlschema-2/#charcter-classes" shape="rect">Character Classes</a> construct
-              of XML Schema <a title="XML Schema Part 2:&#xA;                Datatypes Second Edition" href="#xmlschema2" shape="rect">[XML Schema Part 2]</a> and is compatible with most other regular expression engines.</p><p>Example of expressions (shown as XML source):</p><ul><li><p><code>"[abc]"</code> : allows the characters 'a', 'b' and 'c'.</p></li><li><p><code>"[a-c]"</code> : allows the characters 'a', 'b' and 'c'.</p></li><li><p><code>"[a-zA-Z]"</code> : allows the characters from 'a' to 'z' and from 'A' to
+              of XML Schema <a title="XML Schema Part 2:&#xA;                Datatypes Second Edition" href="#xmlschema2" shape="rect">[XML Schema Part 2]</a> and is compatible with most other regular expression engines.</p><div class="note"><p class="prefix"><b>Note:</b></p><p>Users may want to use a regular expression to make sure that they
+              follow above definition. Sample regular expressions to verify the
+              regular expression in allowed characters are provided: <a href="examples/allowed-characters-verify-xml-regex.txt" shape="rect">for XML</a> and <a href="examples/allowed-characters-verify-java-regex.txt" shape="rect">for Java</a>.</p></div><p>Example of expressions (shown as XML source):</p><ul><li><p><code>"[abc]"</code> : allows the characters 'a', 'b' and 'c'.</p></li><li><p><code>"[a-c]"</code> : allows the characters 'a', 'b' and 'c'.</p></li><li><p><code>"[a-zA-Z]"</code> : allows the characters from 'a' to 'z' and from 'A' to
                 'Z'.</p></li><li><p><code>"[^abc]"</code> : allows any characters except 'a', 'b', and 'c'.</p></li><li><p><code>"[^&amp;#x0061;-c]"</code> : allows any characters except 'a', 'b', and
                 'c'.</p></li><li><p><code>"[^&amp;lt;&gt;:&amp;quot;\\/|\?*]]"</code> : allows
                 only the characters valid for Windows file names.</p></li><li><p><code>"."</code> : allows any character.</p></li><li><p><code>""</code> : allows no character.</p></li></ul></div><div class="div3">
--- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd	2013/04/29 09:22:17	1.391
+++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd	2013/04/29 09:33:37	1.392
@@ -4573,6 +4573,9 @@
             <p>This construct is a sub-set of the <ref
                 target="http://www.w3.org/TR/xmlschema-2/#charcter-classes">Character Classes</ref> construct
               of XML Schema <ptr target="#xmlschema2" type="bibref"/> and is compatible with most other regular expression engines.</p>
+            <note><p>Users may want to use a regular expression to make sure that they
+              follow above definition. Sample regular expressions to verify the
+              regular expression in allowed characters are provided: <ref target="examples/allowed-characters-verify-xml-regex.txt">for XML</ref> and <ref target="examples/allowed-characters-verify-java-regex.txt">for Java</ref>.</p></note>
             <p>Example of expressions (shown as XML source):</p>
             <list type="unordered">
               <item><code>"[abc]"</code> : allows the characters 'a', 'b' and 'c'.</item>
Received on Monday, 29 April 2013 09:33:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:32:41 UTC