Commit 1758adcf authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

regexp

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@67696 954022d7-b5bf-4e40-9824-e11837661b57
parent 27bbcfb3
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
/** @type RegExp */ /** @type RegExp */
this.reReplaceTab = /[\t\v\f]/g; this.reReplaceTab = /[\t\v\f]/g;
// RegExp с поддержкой рэнджей вида $E1:$F2 // RegExp с поддержкой рэнджей вида $E1:$F2
this.reRangeStr = "[^a-z0-9_$!](\\$?[a-z]+\\$?\\d+:\\$?[a-z]+\\$?\\d+(?=[^a-z0-9_]|$)|\\$?[a-z]+:\\$?[a-z]+(?=[^a-z0-9_]|$)|\\$?\\d+:\\$?\\d+(?=[^a-z0-9_]|$)|\\$?[a-z]+\\$?\\d+(?=[^a-z0-9_]|$))"; this.reRangeStr = "[^a-z0-9_$!](\\$?[a-z]+\\$?\\d+:\\$?[a-z]+\\$?\\d+|\\$?[a-z]+:\\$?[a-z]+|\\$?\\d+:\\$?\\d+|\\$?[a-z]+\\$?\\d+)(?=[^a-z0-9_]|$)";
this.rangeChars = ["=", "-", "+", "*", "/", "(", "{", ",", "<", ">", "^", "!", "&", ":", ";", " "]; this.rangeChars = ["=", "-", "+", "*", "/", "(", "{", ",", "<", ">", "^", "!", "&", ":", ";", " "];
this.reNotFormula = new XRegExp("[^\\p{L}0-9_]", "i"); this.reNotFormula = new XRegExp("[^\\p{L}0-9_]", "i");
this.reFormula = new XRegExp("^([\\p{L}][\\p{L}0-9_]*)", "i"); this.reFormula = new XRegExp("^([\\p{L}][\\p{L}0-9_]*)", "i");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment