100+ results for '[a-z]'
Not the results you expected?
affiliate.php (https://gitlab.com/firstrate/firstrate) PHP · 181 lines
simple-exp-tree.c (https://gitlab.com/dedstroyer/mai-workshops-2013) C · 330 lines
FindPerlLibs.cmake (https://github.com/okuoku/CMake.git) CMake · 275 lines
107 )
108 if (NOT PERL_SITESEARCH_RESULT_VARIABLE)
109 string(REGEX REPLACE "install[a-z]+='([^']+)'.*" "\\1" PERL_SITESEARCH ${PERL_SITESEARCH_OUTPUT_VARIABLE})
110 endif (NOT PERL_SITESEARCH_RESULT_VARIABLE)
120 )
121 if (NOT PERL_SITELIB_RESULT_VARIABLE)
122 string(REGEX REPLACE "install[a-z]+='([^']+)'.*" "\\1" PERL_SITELIB ${PERL_SITELIB_OUTPUT_VARIABLE})
123 endif (NOT PERL_SITELIB_RESULT_VARIABLE)
133 )
134 if (NOT PERL_VENDORARCH_RESULT_VARIABLE)
135 string(REGEX REPLACE "install[a-z]+='([^']+)'.*" "\\1" PERL_VENDORARCH ${PERL_VENDORARCH_OUTPUT_VARIABLE})
136 endif (NOT PERL_VENDORARCH_RESULT_VARIABLE)
AppDataAttributeHandler.js (https://github.com/eduardolundgren/senna.git) JavaScript · 269 lines
137 it('should add routes from document with regex paths', () => {
138 enterDocumentRouteElement('regex:[a-z]');
139 var appDataAttributeHandler = new AppDataAttributeHandler();
140 appDataAttributeHandler.setBaseElement(globals.document.body);
142 assert.ok(appDataAttributeHandler.getApp().routes[0].getPath() instanceof RegExp);
143 appDataAttributeHandler.dispose();
144 exitDocumentRouteElement('regex:[a-z]');
145 });
Base64.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 270 lines
28 /**
29 * Class Base64
30 * [A-Z][a-z][0-9]+/
31 *
32 * @package ParagonIE\ConstantTime
37 * Encode into Base64
38 *
39 * Base64 character set "[A-Z][a-z][0-9]+/"
40 *
41 * @param string $binString
51 * Encode into Base64, no = padding
52 *
53 * Base64 character set "[A-Z][a-z][0-9]+/"
54 *
55 * @param string $src
Router.php (https://gitlab.com/habracoder/advertising) PHP · 494 lines
13 * $router = new Router();
14 * $router->add(
15 * "/documentation/{chapter}/{name}\.{type:[a-z]+}",
16 =======
17 * <p>Phalcon\Mvc\Router is the standard framework router. Routing is the
22 * $router = new Router();
23 * $router->add(
24 * "/documentation/{chapter}/{name}.{type:[a-z]+}",
25 >>>>>>> 5cd73180ea748c3d5e180a24610161d9730cd146
26 * array(
I18nBehaviorObjectBuilderModifier.php (https://gitlab.com/Isaki/le331.fr) PHP · 212 lines
157 $comment = preg_replace('/^\t/m', '', $comment);
158 $functionStatement = preg_replace('/^\t/m', '', $functionStatement);
159 preg_match_all('/\$[a-z]+/i', $functionStatement, $params);
161 return $this->behavior->renderTemplate('objectTranslatedColumnGetter', array(
186 $comment = str_replace('@return ' . $i18nTablePhpName, '@return ' . $tablePhpName, $comment);
187 $functionStatement = preg_replace('/^\t/m', '', $functionStatement);
188 preg_match_all('/\$[a-z]+/i', $functionStatement, $params);
190 return $this->behavior->renderTemplate('objectTranslatedColumnSetter', array(
extpfeil.js (https://gitlab.com/Mirros/jsdelivr) JavaScript · 16 lines
13 */
15 MathJax.Extension["TeX/extpfeil"]={version:"2.1"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.InputJax.TeX,a=b.Definitions;a.Add({macros:{xtwoheadrightarrow:["Extension","AMSmath"],xtwoheadleftarrow:["Extension","AMSmath"],xmapsto:["Extension","AMSmath"],xlongequal:["Extension","AMSmath"],xtofrom:["Extension","AMSmath"],Newextarrow:["Extension","AMSmath"]}},null,true);MathJax.Hub.Register.StartupHook("TeX AMSmath Ready",function(){MathJax.Hub.Insert(a,{macros:{xtwoheadrightarrow:["xArrow",8608,12,16],xtwoheadleftarrow:["xArrow",8606,17,13],xmapsto:["xArrow",8614,6,7],xlongequal:["xArrow",61,7,7],xtofrom:["xArrow",8644,12,12],Newextarrow:"NewExtArrow"}})});b.Parse.Augment({NewExtArrow:function(c){var e=this.GetArgument(c),f=this.GetArgument(c),d=this.GetArgument(c);if(!e.match(/^\\([a-z]+|.)$/i)){b.Error("First argument to "+c+" must be a control sequence name")}if(!f.match(/^(\d+),(\d+)$/)){b.Error("Second argument to "+c+" must be two integers separated by a comma")}if(!d.match(/^(\d+|0x[0-9A-F]+)$/i)){b.Error("Third argument to "+c+" must be a unicode character number")}e=e.substr(1);f=f.split(",");d=parseInt(d);a.macros[e]=["xArrow",d,parseInt(f[0]),parseInt(f[1])]}});MathJax.Hub.Startup.signal.Post("TeX extpfeil Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/extpfeil.js");
JSPVarNameCheck.java (https://github.com/danielreuther/liferay-portal.git) Java · 63 lines
release.sh (https://gitlab.com/x33n/angular.js) Shell · 69 lines
app.js (https://gitlab.com/x33n/angular-101-from-n00b-to-ngExpert) JavaScript · 59 lines
17 }
19 var regex = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
20 return regex.test(email);
sfValidatorUrl.class.php (https://github.com/bheneka/gitta.git) PHP · 59 lines
String.js (https://github.com/KenBoyer/CompactCMS.git) JavaScript · 82 lines
openssl-1.0.0b-darwin-bundle-compile-fix.patch (https://bitbucket.org/remustata/lmnd-prefix.git) Patch · 52 lines
25 case "$(CFLAGS)" in \
26 *DSO_BEOS*) sfx=".so";; \
27 - *DSO_DLFCN*) sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;; \
28 + *DSO_DLFCN*) \
29 + case "$(PLATFORM)" in \
30 + darwin64-*|darwin-*) sfx=".bundle";; \
31 + *) sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;; \
32 + esac; \
33 + ;; \
41 case "$(CFLAGS)" in \
42 *DSO_BEOS*) sfx=".so";; \
43 - *DSO_DLFCN*) sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;; \
44 + *DSO_DLFCN*) \
45 + case "$(PLATFORM)" in \
html.js (https://github.com/pound42/dojox.git) JavaScript · 96 lines
15.10.2-1.js (https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk) JavaScript · 176 lines
FileManager.php (https://bitbucket.org/seyar/kinda.local.git) PHP · 177 lines
73 проверка расширеня файла
74 */
75 preg_match('/\.([a-z]{3,})$/i', $el, $ext);
76 if (!in_array(strtolower($ext[1]), explode('|', Manager::$conf['filesystem.allowed_extensions']))) continue;
77 $list[] = $obj;
156 */
157 public static function get_ext($filename = ''){
158 preg_match('/\.([a-z]{3,})$/i', $filename, $ext);
159 return $ext[1];
160 }
user.rb (https://github.com/abalasu3/bc_app.git) Ruby · 65 lines
ASIN.pm (https://bitbucket.org/intgr/musicbrainz-server.git) Perl · 64 lines
jquery.syntax.brush.java.js (https://github.com/voidit/nycga2.git) JavaScript · 41 lines
user.rb (https://github.com/mikkor88/sample_app.git) Ruby · 64 lines
CheckURL.pm (https://bitbucket.org/sfranchi/lyx.git) Perl · 246 lines
shBrushErlang.js (https://gitlab.com/1851616111/toropress) JavaScript · 52 lines
Bundle.properties (https://bitbucket.org/pymma/openesb-components.git) Properties File · 36 lines
user.rb (https://github.com/jpowell1218/rails_3_sample_app.git) Ruby · 66 lines
password_strength.js (https://bitbucket.org/JakePratt/kupcakz.com.git) JavaScript · 39 lines
LiteralNamespacesSniff.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 66 lines
is_organization.js (https://gitlab.com/skmexyz/SortableCodingChallenge) JavaScript · 77 lines
42 }
43 //no period acronyms
44 if (text.length <= 5 && text.match(/^[A-Z][A-Z]+$/) !== null) {
45 return true;
46 }
47 //period acronyms
48 if (text.length >= 4 && text.match(/^([A-Z]\.)*$/) !== null) {
49 return true;
50 }
58 }
59 // eg pets.com
60 if (str.match(/[a-z]{3}\.(com|net|org|biz)/)) { //not a perfect url regex, but a "org.com"
61 return true;
62 }
RGenerator.php (https://gitlab.com/zenfork/vektor) PHP · 211 lines
ApiSearchController.php (https://bitbucket.org/d1rk/li3_docs.git) PHP · 68 lines
RegexpTokenizerTest.java (https://github.com/ajub/sonar.git) Java · 47 lines
client.go (https://gitlab.com/github-cloud-corporation/machine) Go · 130 lines
67 // location is the location of the domain name domainNameLabel is the domain
68 // name to be verified. It must conform to the following regular expression:
69 // ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.
70 func (client ManagementClient) CheckDNSNameAvailability(location string, domainNameLabel string) (result DNSNameAvailabilityResult, err error) {
71 req, err := client.CheckDNSNameAvailabilityPreparer(location, domainNameLabel)
tools.py (https://github.com/adrianpike/wwscc.git) Python · 194 lines
rdoc.vim (https://github.com/evan2m/dotfiles.git) Vim Script · 50 lines
18 syn match rdocTitle "^[A-Z].*:"
19 syn match rdocTitle "^\S.*R Documentation$"
20 syn region rdocStringS start="‘" end="’"
23 syn match rdocURL `\v<(((https?|ftp|gopher)://|(mailto|file|news):)[^' <>"]+|(www|web|w3)[a-z0-9_-]*\.[a-z0-9._-]+\.[^' <>"]+)[a-zA-Z0-9/]`
24 syn keyword rdocNote note Note NOTE note: Note: NOTE: Notes Notes:
25 syn match rdocArg "^\s*\([a-z]\|[A-Z]\|[0-9]\|\.\)*: "
27 syn include @rdocR syntax/r.vim
objects.rb (https://github.com/quasor/redis-objects.git) Ruby · 138 lines
shBrushHaskell.js (https://github.com/livinglab/openlab.git) JavaScript · 38 lines
17 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
18 { regex: /(-|!|#|\$|%|&|\*|\+|\/|<|=|>|\?|@|\^|\||~|:|\.|\\)+/g, css: 'keyword bold' },
19 { regex: /`[a-z][a-z0-9_']*`/g, css: 'keyword bold' }, // infix operators
20 { regex: /\b(\d+|0x[0-9a-f]+)\b/gi, css: 'value' }, // integer
21 { regex: /\b\d+(\.\d*)?([eE][+-]?\d+)?\b/gi, css: 'value' }, // floating number
Headers.php (https://bitbucket.org/tobmaster/carica-io.git) PHP · 66 lines
MethodNameCheck.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 125 lines
28 * {@link java.util.regex.Pattern regular expression}
29 * and defaults to
30 * <strong>^[a-z][a-zA-Z0-9]*$</strong>.
31 * </p>
32 *
50 * <pre>
51 * <module name="MethodName">
52 * <property name="format" value="^[a-z](_?[a-zA-Z0-9]+)*$"/>
53 * </module>
54 * </pre>
78 public MethodNameCheck()
79 {
80 super("^[a-z][a-zA-Z0-9]*$");
81 }
code_block_highlight.js (https://gitlab.com/523/gitlab-ce) JavaScript · 65 lines
CSS-min.js (https://github.com/leosamu/cartagen.git) JavaScript · 9 lines
7 */
9 Ext.util.CSS=function(){var D=null;var C=document;var B=/(-[a-z])/gi;var A=function(E,F){return F.charAt(1).toUpperCase()};return{createStyleSheet:function(G,J){var F;var E=C.getElementsByTagName("head")[0];var I=C.createElement("style");I.setAttribute("type","text/css");if(J){I.setAttribute("id",J)}if(Ext.isIE){E.appendChild(I);F=I.styleSheet;F.cssText=G}else{try{I.appendChild(C.createTextNode(G))}catch(H){I.cssText=G}E.appendChild(I);F=I.styleSheet?I.styleSheet:(I.sheet||C.styleSheets[C.styleSheets.length-1])}this.cacheStyleSheet(F);return F},removeStyleSheet:function(F){var E=C.getElementById(F);if(E){E.parentNode.removeChild(E)}},swapStyleSheet:function(G,E){this.removeStyleSheet(G);var F=C.createElement("link");F.setAttribute("rel","stylesheet");F.setAttribute("type","text/css");F.setAttribute("id",G);F.setAttribute("href",E);C.getElementsByTagName("head")[0].appendChild(F)},refreshCache:function(){return this.getRules(true)},cacheStyleSheet:function(F){if(!D){D={}}try{var H=F.cssRules||F.rules;for(var E=H.length-1;E>=0;--E){D[H[E].selectorText]=H[E]}}catch(G){}},getRules:function(F){if(D==null||F){D={};var H=C.styleSheets;for(var G=0,E=H.length;G<E;G++){try{this.cacheStyleSheet(H[G])}catch(I){}}}return D},getRule:function(E,G){var F=this.getRules(G);if(!Ext.isArray(E)){return F[E]}for(var H=0;H<E.length;H++){if(F[E[H]]){return F[E[H]]}}return null},updateRule:function(E,H,G){if(!Ext.isArray(E)){var I=this.getRule(E);if(I){I.style[H.replace(B,A)]=G;return true}}else{for(var F=0;F<E.length;F++){if(this.updateRule(E[F],H,G)){return true}}}return false}}}();
Iban.php (https://github.com/fzaninotto/Faker.git) PHP · 73 lines
daijisen.js (https://github.com/shinout/kanabun-champ.git) JavaScript · 83 lines
filepath.vim (https://bitbucket.org/deris0126/vital.vim.git) Vim Script · 173 lines
account.rb (https://github.com/mathieul/videos.git) Ruby · 53 lines
gams.js (https://github.com/themr0c/themr0ctalks.git) JavaScript · 153 lines
test-locate.R (https://github.com/qinwf/re2r.git) R · 296 lines
string.php (https://bitbucket.org/gnomeontherun/square-one.git) PHP · 154 lines
78 {
79 // Put all opened tags into an array
80 preg_match_all("#<([a-z][a-z0-9]*)\b.*?(?!/)>#i", $tmp, $result);
81 $openedTags = $result[1];
82 $openedTags = array_diff($openedTags, array("img", "hr", "br"));
85 // Put all closed tags into an array
86 preg_match_all("#</([a-z]+)>#iU", $tmp, $result);
87 $closedTags = $result[1];
ignoreCase.as (https://github.com/bsdf/trx.git) ActionScript · 114 lines
64 false, /xyz/.ignoreCase);
66 // 'ABC def ghi'.match(/[a-z]+/ig)
67 testcases[index++] = new TestCase ( SECTION, "'ABC def ghi'.match(/[a-z]+/ig)",
68 String(["ABC","def","ghi"]), String('ABC def ghi'.match(/[a-z]+/ig)));
70 // 'ABC def ghi'.match(/[a-z]+/i)
71 testcases[index++] = new TestCase ( SECTION, "'ABC def ghi'.match(/[a-z]+/i)",
72 String(["ABC"]), String('ABC def ghi'.match(/[a-z]+/i)));
74 // 'ABC def ghi'.match(/([a-z]+)/ig)
75 testcases[index++] = new TestCase ( SECTION, "'ABC def ghi'.match(/([a-z]+)/ig)",
parser.php (https://github.com/tharkun/atoum.git) PHP · 238 lines
Rakefile (https://github.com/shift/hyperpublic_ruby.git) Rakefile · 54 lines
16 # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17 gem.version = Hyperpublic::VERSION
18 gem.files = FileList['lib/**/*.rb', '[A-Z]*', 'spec/**/*'].to_a
19 gem.name = "hyperpublic_ruby"
20 gem.homepage = "http://github.com/jumppost/hyperpublic_api_ruby"
AccessorVisitor.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 148 lines
S15.10.2.8_A3_T30.js (https://bitbucket.org/beala/test262.git) JavaScript · 43 lines
14 __string = "ab";
16 __executed = /^([a-z]+)*[a-z]$/.exec(__string);
18 __expected = ['ab', "a"];
22 //CHECK#1
23 if (__executed.length !== __expected.length) {
24 $ERROR('#1: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
25 }
27 //CHECK#2
28 if (__executed.index !== __expected.index) {
29 $ERROR('#2: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
30 }
S15.10.2.8_A3_T29.js (https://bitbucket.org/beala/test262.git) JavaScript · 43 lines
14 __string = "a";
16 __executed = /^([a-z]+)*[a-z]$/.exec(__string);
18 __expected = ['a', undefined];
22 //CHECK#1
23 if (__executed.length !== __expected.length) {
24 $ERROR('#1: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
25 }
27 //CHECK#2
28 if (__executed.index !== __expected.index) {
29 $ERROR('#2: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
30 }
ClassesTest.php (https://gitlab.com/axeltizon/magento-demopoweraccess) PHP · 128 lines
string.hpp (https://gitlab.com/lwiz/BasicEventEngine) C++ Header · 136 lines
Utf16Utility.cs (https://github.com/dotnet/runtime.git) C# · 217 lines
RegExpValidatorElement.qml (https://gitlab.com/f3822/qtdeclarative) QML · 102 lines
33 anchors.fill: parent
34 property string testtext: ""
35 property variant regexp: /[a-z]{3}/
37 RegularExpressionValidator { id: regexpvalidatorelement; regularExpression: regexp }
92 State { name: "changedregex"; when: statenum == 5
93 PropertyChanges { target: regexpvalidatorelementinput; text: "abcd" }
94 PropertyChanges { target: regexpvalidatorelementtest; regexp: /[a-z]{4}/
95 testtext: "The regular expression should have changed to match four characters, "+
96 "thus making the text valid and turning the input background green.\n"+
routes.php (https://github.com/batl/sp.git) PHP · 57 lines
index.html (https://gitlab.com/learnability/gaia) HTML · 63 lines
user.rb (https://github.com/mcgournj/sample_app.git) Ruby · 66 lines
views.py (https://github.com/gabrielhurley/horizon.git) Python · 287 lines
Makefile (https://github.com/tyll/tinyos-2.x-contrib.git) Makefile · 57 lines
53 $(JAVA_FILES): $(JAVA_DEST)/%Msg.java: $(MIG_SRC)
54 $(MIG) java $(MIG_SRC) `perl -e 'print join('_', map "\L$$_", split /(?<=[a-z])(?=[A-Z])/, q/$*/)'` -java-classname=simx.mig.$*Msg -o $@
56 $(PYTHON_FILES): $(PYTHON_DEST)/%.py: $(MIG_SRC)
57 $(MIG) python $(MIG_SRC) `perl -e 'print join('_', map "\L$$_", split /(?<=[a-z])(?=[A-Z])/, q/$*/)'` -python-classname=Msg -o $(PYTHON_DEST)/$*.py
S15.5.4.14_A4_T24.js (https://github.com/kangax/sputniktests-webrunner.git) JavaScript · 45 lines
8 * been stored. If separator is a regular expression then
9 * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding;
10 * @description: Argument is regexp /[a-z]/, and instance is String("abc");
11 */
13 var __string = new String("abc");
15 var __re = /[a-z]/;
17 __split = __string.split(__re);
NativeLinkListener.java (https://github.com/informedindividual/cms-ce.git) Java · 69 lines
Proliphix-Thermostat.rb (https://github.com/rmillet42/WhatWeb.git) Ruby · 63 lines
erlang.js (https://github.com/skolima/CruiseControl.NET.git) JavaScript · 201 lines
character_class_spec.rb (https://github.com/vartikasingh/BackchannelApplication-1.git) Ruby · 276 lines
7 describe "a character class followed by a node class declaration and a block" do
9 testing_expression "[A-Z] <CharacterClassSpec::Foo> { def a_method; end }"
11 it "matches single characters within that range, returning instances of the declared node class that respond to the method defined in the inline module" do
40 describe "a character class followed by a node module declaration and a block" do
42 testing_expression "[A-Z] <CharacterClassSpec::ModFoo> { def a_method; end }"
44 it "matches single characters within that range, returning instances of SyntaxNode extended by the specified module" do
266 describe "a character class that gets cached because of a choice" do
267 testing_expression "[A-Z] 'a' / [A-Z]"
269 it "generates a node for the lazily-instantiated character when it is the primary node" do
options.mk (https://github.com/joevandyk/pkgsrc.git) Makefile · 169 lines
help.awk (https://github.com/mend0za/pkgsrc-2011Q3.git) AWK · 188 lines
storage_partition_config.h (https://github.com/chromium/chromium.git) C Header · 111 lines
xhg-revision.el (https://github.com/demery/.emacs.d.git) Emacs Lisp · 126 lines
resourcelink.js (https://github.com/xiannenglin/3akai-ux.git) JavaScript · 117 lines
84 // that the url provided is a real url
85 if ($("input[type=radio]:checked").attr('id') == 'link_to_web') {
86 var regexp = /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i // from jquery validate plugin
87 var url = $("#link_url").val().trim();
88 if (regexp.test(url)) {
GridColumn.cs (https://github.com/dalager/MvcContrib.git) C# · 219 lines
format.rb (https://github.com/eparreno/rails.git) Ruby · 113 lines
59 #
60 # class Person < ActiveRecord::Base
61 # validates_format_of :email, with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i, on: :create
62 # end
63 #
75 # # Admin can have number as a first letter in their screen name
76 # validates_format_of :screen_name,
77 # with: ->(person) { person.admin? ? /\A[a-z0-9][a-z0-9_\-]*\z/i : /\A[a-z][a-z0-9_\-]*\z/i }
78 # end
79 #
ruby.js (https://github.com/mantidproject/3rdpartylibs-win32.git) JavaScript · 195 lines
no-multi-spaces.js (https://gitlab.com/sdabi/execom) JavaScript · 144 lines
Parser.pm (https://github.com/csirac2/core.git) Perl · 147 lines
82 </verbatim>
83 String and Numbers are as defined in Foswiki::Infix::Parser. Names default
84 to =/([A-Z:][A-Z0-9_:]*|({[A-Z][A-Z0-9_]*})+)/i=.
86 See %SYSTEMWEB%.QuerySearch for details of the query language.
98 my ( $class, $options ) = @_;
100 $options->{words} ||= qr/([A-Z:][A-Z0-9_:]*|({[A-Z][A-Z0-9_]*})+)/i;
101 $options->{nodeClass} ||= 'Foswiki::Query::Node';
102 my $this = $class->SUPER::new($options);
HeraldTestConsoleController.php (https://github.com/juneym/phabricator.git) PHP · 145 lines
dom-base.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 887 lines
dom.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 1491 lines
metagrammar.rb (https://github.com/csnelgrove/demo_app.git) Ruby · 2086 lines
329 if r3
330 i4, s4 = index, []
331 if has_terminal?('\G[A-Z]', true, index)
332 r5 = true
333 @index += 1
361 s9 << r10
362 if r10
363 if has_terminal?('\G[A-Z]', true, index)
364 r11 = true
365 @index += 1
611 i0, s0 = index, []
612 if has_terminal?('\G[A-Z]', true, index)
613 r1 = true
614 @index += 1
rest-openapi.yaml (https://github.com/danielreuther/liferay-portal.git) YAML · 544 lines
RangeToken.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 623 lines
AnnotationValidationConfigurationBuilder.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 816 lines
validatorsSpec.js (https://gitlab.com/x33n/angular.js) JavaScript · 549 lines
t7063-status-untracked-cache.sh (https://gitlab.com/Blueprint-Marketing/git) Shell · 574 lines
mux_test.go (https://gitlab.com/cowboygneox/gitlab-ci-multi-runner) Go · 1358 lines
178 {
179 title: "Host route with multiple hyphenated names and patterns, match",
180 route: new(Route).Host("{v-1:[a-z]{3}}.{v-2:[a-z]{3}}.{v-3:[a-z]{3}}"),
181 request: newRequest("GET", "http://aaa.bbb.ccc/111/222/333"),
182 vars: map[string]string{"v-1": "aaa", "v-2": "bbb", "v-3": "ccc"},
465 {
466 title: "Host and Path route with multiple patterns, match",
467 route: new(Route).Host("{v1:[a-z]{3}}.{v2:[a-z]{3}}.{v3:[a-z]{3}}").Path("/{v4:[0-9]{3}}/{v5:[0-9]{3}}/{v6:[0-9]{3}}"),
468 request: newRequest("GET", "http://aaa.bbb.ccc/111/222/333"),
469 vars: map[string]string{"v1": "aaa", "v2": "bbb", "v3": "ccc", "v4": "111", "v5": "222", "v6": "333"},
474 {
475 title: "Host and Path route with multiple patterns, URL in request does not match",
476 route: new(Route).Host("{v1:[a-z]{3}}.{v2:[a-z]{3}}.{v3:[a-z]{3}}").Path("/{v4:[0-9]{3}}/{v5:[0-9]{3}}/{v6:[0-9]{3}}"),
477 request: newRequest("GET", "http://aaa.222.ccc/111/222/333"),
478 vars: map[string]string{"v1": "aaa", "v2": "bbb", "v3": "ccc", "v4": "111", "v5": "222", "v6": "333"},
SH.php (https://bitbucket.org/rezanachmad/php-selenium-training.git) PHP · 1207 lines
52 $this->_options = $options;
53 $this->_regs = array (
54 -1 => '/((?m)^(#!)(.*))|(\\{)|(\\()|(\\[)|((use)\\s+([\\w:]*))|((?Us)\\b(q[wq]\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|((?Us)\\b(q\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|(#.*)|((?x)(s|tr) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2)((\\\\.|[^\\\\])*?)(\\2[ecgimosx]*))|((?x)(m) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2[ecgimosx]*))|( \\/)|(\\$#?[1-9\'`@!])|((?i)(\\$#?|[@%*])([a-z1-9_]+::)*([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)(\\{)([a-z1-9]+)(\\}))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(`)|(\')|(")|((?i)[a-z_]\\w*)|(\\d*\\.?\\d+)/',
55 0 => '/((?m)^(#!)(.*))|(\\{)|(\\()|(\\[)|((use)\\s+([\\w:]*))|((?Us)\\b(q[wq]\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|((?Us)\\b(q\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|(#.*)|((?x)(s|tr) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2)((\\\\.|[^\\\\])*?)(\\2[ecgimosx]*))|((?x)(m) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2[ecgimosx]*))|( \\/)|(\\$#?[1-9\'`@!])|((?i)(\\$#?|[@%*])([a-z1-9_]+::)*([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)(\\{)([a-z1-9]+)(\\}))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(`)|(\')|(")|((?i)[a-z_]\\w*)|(\\d*\\.?\\d+)/',
56 1 => '/((?m)^(#!)(.*))|(\\{)|(\\()|(\\[)|((use)\\s+([\\w:]*))|((?Us)\\b(q[wq]\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|((?Us)\\b(q\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|(#.*)|((?x)(s|tr) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2)((\\\\.|[^\\\\])*?)(\\2[ecgimosx]*))|((?x)(m) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2[ecgimosx]*))|( \\/)|((?i)([a-z1-9_]+)(\\s*=>))|(\\$#?[1-9\'`@!])|((?i)(\\$#?|[@%*])([a-z1-9_]+::)*([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)(\\{)([a-z1-9]+)(\\}))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(`)|(\')|(")|((?i)[a-z_]\\w*)|(\\d*\\.?\\d+)/',
57 2 => '/((?m)^(#!)(.*))|(\\{)|(\\()|(\\[)|((use)\\s+([\\w:]*))|((?Us)\\b(q[wq]\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|((?Us)\\b(q\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|(#.*)|((?x)(s|tr) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2)((\\\\.|[^\\\\])*?)(\\2[ecgimosx]*))|((?x)(m) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2[ecgimosx]*))|( \\/)|(\\$#?[1-9\'`@!])|((?i)(\\$#?|[@%*])([a-z1-9_]+::)*([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)(\\{)([a-z1-9]+)(\\}))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(`)|(\')|(")|((?i)[a-z_]\\w*)|(\\d*\\.?\\d+)/',
58 3 => '/(\\$#?[1-9\'`@!])|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(\\\\[\\\\"\'`tnr\\$\\{@])/',
59 4 => '/(\\\\\\\\|\\\\"|\\\\\'|\\\\`)/',
60 5 => '/(\\\\\\/)/',
61 6 => '/(\\$#?[1-9\'`@!])|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(\\\\\\\\|\\\\"|\\\\\'|\\\\`)/',
62 7 => '/(\\\\\\\\|\\\\"|\\\\\'|\\\\`)/',
63 8 => '/(\\$#?[1-9\'`@!])|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(\\\\[\\\\"\'`tnr\\$\\{@])/',
PERL.php (https://bitbucket.org/rezanachmad/php-selenium-training.git) PHP · 1334 lines
54 $this->_options = $options;
55 $this->_regs = array (
56 -1 => '/((?m)^(#!)(.*))|((?m)^=\\w+)|(\\{)|(\\()|(\\[)|((use)\\s+([\\w:]*))|([& ](\\w{2,}::)+\\w{2,})|((?Us)\\b(q[wq]\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|((?Us)\\b(q\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|(#.*)|((?x)(s|tr) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2)((\\\\.|[^\\\\])*?)(\\2[ecgimosx]*))|((?x)(m) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2[ecgimosx]*))|( \\/)|(\\$#?[1-9\'`@!])|((?i)(\\$#?|[@%*])([a-z1-9_]+::)*([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)(&|\\w+)\'[\\w_\']+\\b)|((?i)(\\{)([a-z1-9]+)(\\}))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(`)|(\')|(")|((?i)[a-z_]\\w*)|(\\d*\\.?\\d+)/',
57 0 => '//',
58 1 => '/((?m)^(#!)(.*))|((?m)^=\\w+)|(\\{)|(\\()|(\\[)|((use)\\s+([\\w:]*))|([& ](\\w{2,}::)+\\w{2,})|((?Us)\\b(q[wq]\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|((?Us)\\b(q\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|(#.*)|((?x)(s|tr) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2)((\\\\.|[^\\\\])*?)(\\2[ecgimosx]*))|((?x)(m) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2[ecgimosx]*))|( \\/)|(\\$#?[1-9\'`@!])|((?i)(\\$#?|[@%*])([a-z1-9_]+::)*([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)(&|\\w+)\'[\\w_\']+\\b)|((?i)(\\{)([a-z1-9]+)(\\}))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(`)|(\')|(")|((?i)[a-z_]\\w*)|(\\d*\\.?\\d+)/',
59 2 => '/((?m)^(#!)(.*))|((?m)^=\\w+)|(\\{)|(\\()|(\\[)|((use)\\s+([\\w:]*))|([& ](\\w{2,}::)+\\w{2,})|((?Us)\\b(q[wq]\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|((?Us)\\b(q\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|(#.*)|((?x)(s|tr) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2)((\\\\.|[^\\\\])*?)(\\2[ecgimosx]*))|((?x)(m) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2[ecgimosx]*))|( \\/)|((?i)([a-z1-9_]+)(\\s*=>))|(\\$#?[1-9\'`@!])|((?i)(\\$#?|[@%*])([a-z1-9_]+::)*([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)(&|\\w+)\'[\\w_\']+\\b)|((?i)(\\{)([a-z1-9]+)(\\}))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(`)|(\')|(")|((?i)[a-z_]\\w*)|(\\d*\\.?\\d+)/',
60 3 => '/((?m)^(#!)(.*))|((?m)^=\\w+)|(\\{)|(\\()|(\\[)|((use)\\s+([\\w:]*))|([& ](\\w{2,}::)+\\w{2,})|((?Us)\\b(q[wq]\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|((?Us)\\b(q\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|(#.*)|((?x)(s|tr) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2)((\\\\.|[^\\\\])*?)(\\2[ecgimosx]*))|((?x)(m) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2[ecgimosx]*))|( \\/)|(\\$#?[1-9\'`@!])|((?i)(\\$#?|[@%*])([a-z1-9_]+::)*([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)(&|\\w+)\'[\\w_\']+\\b)|((?i)(\\{)([a-z1-9]+)(\\}))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(`)|(\')|(")|((?i)[a-z_]\\w*)|(\\d*\\.?\\d+)/',
61 4 => '/(\\$#?[1-9\'`@!])|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(\\\\[\\\\"\'`tnr\\$\\{@])/',
62 5 => '/(\\\\\\\\|\\\\"|\\\\\'|\\\\`)/',
63 6 => '/(\\\\\\/)/',
64 7 => '/(\\$#?[1-9\'`@!])|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(\\\\\\\\|\\\\"|\\\\\'|\\\\`)/',
65 8 => '/(\\\\\\\\|\\\\"|\\\\\'|\\\\`)/',
66 9 => '/(\\$#?[1-9\'`@!])|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(\\\\[\\\\"\'`tnr\\$\\{@])/',
model_validation.test.php (https://github.com/mickey390/cakephp.git) PHP · 673 lines
ModelValidationTest.php (https://github.com/kunit/cakephp.git) PHP · 1701 lines
TypeProvider.java (https://github.com/googleapis/google-api-java-client-services.git) Java · 340 lines
83 * Map of labels; provided by the client when the resource is created or updated. Specifically:
84 * Label keys must be between 1 and 63 characters long and must conform to the following regular
85 * expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long
86 * and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
93 * Name of the resource; provided by the client when the resource is created. The name must be
94 * 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters
95 * long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
96 * character must be a lowercase letter, and all following characters must be a dash, lowercase
97 * letter, or digit, except the last character, which cannot be a dash.
230 * Map of labels; provided by the client when the resource is created or updated. Specifically:
231 * Label keys must be between 1 and 63 characters long and must conform to the following regular
232 * expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long
233 * and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
241 * Map of labels; provided by the client when the resource is created or updated. Specifically:
242 * Label keys must be between 1 and 63 characters long and must conform to the following regular
243 * expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long
244 * and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
Ref.pm (https://github.com/dwimperl/perl-5.12.3.0.git) Perl · 171 lines
58 my $class_name;
59 if ( "$source" =~ /^\Q$ref_type\E\=([A-Z]+)\(0x[0-9a-f]+\)$/ ) {
60 $class_name = $ref_type;
61 $ref_type = $1;
126 # Extract underlying data types
127 my $type_A = ("$A" =~ /^\Q$ref_A\E\=([A-Z]+)\(0x[0-9a-f]+\)$/) ? $1 : $ref_A;
128 my $type_B = ("$B" =~ /^\Q$ref_B\E\=([A-Z]+)\(0x[0-9a-f]+\)$/) ? $1 : $ref_B;
set.rst (https://github.com/kriskhaira/cakephp-docs.git) ReStructuredText · 1564 lines
59 Any string (without enclosing brackets) is treated like a string
60 literal.
61 {[a-z]+}
62 Any string enclosed in brackets (besides {n} and {s}) is
63 interpreted as a regular expression.
857 path using an array path syntax, i.e.:
859 - "{n}.Person.{[a-z]+}" - Where "{n}" represents a numeric key,
860 "Person" represents a string literal
861 - "{[a-z]+}" (i.e. any string literal enclosed in brackets besides
mim2.xsd (https://github.com/elaufis/otp.git) XML Schema · 506 lines
93 <xs:simpleType>
94 <xs:restriction base="xs:string">
95 <xs:pattern value="[A-Z][A-Za-z0-9]*"/>
96 </xs:restriction>
97 </xs:simpleType>
300 <xs:simpleType>
301 <xs:restriction base="xs:string">
302 <xs:pattern value="[A-Z][A-Za-z0-9]*"/>
303 </xs:restriction>
304 </xs:simpleType>
338 <xs:simpleType>
339 <xs:restriction base="xs:string">
340 <xs:pattern value="[a-z][a-zA-Z0-9]*"/>
341 </xs:restriction>
342 </xs:simpleType>
MyBsModel_1.xsd (https://github.com/elaufis/otp.git) XML Schema · 502 lines
375 <xsd:restriction base="xsd:normalizedString">
376 <xsd:whiteSpace value="collapse"/>
377 <xsd:pattern value="((/IntegratedSite:model/)|((\.\./)+)|((\./)(\.\./)*)|())((([A-Z][a-zA-Z0-9]+:model)|([A-Z][a-zA-Z0-9]+(\[[a-z][a-zA-Z0-9]*='[^\]]+'\])*))/)*Blipp\[id='[^\]]+'\]"/>
378 </xsd:restriction>
379 </xsd:simpleType>
407 <xsd:restriction base="xsd:normalizedString">
408 <xsd:whiteSpace value="collapse"/>
409 <xsd:pattern value="((/IntegratedSite:model/)|((\.\./)+)|((\./)(\.\./)*)|())((([A-Z][a-zA-Z0-9]+:model)|([A-Z][a-zA-Z0-9]+(\[[a-z][a-zA-Z0-9]*='[^\]]+'\])*))/)*ChildClass\[id='[^\]]+'\]"/>
410 </xsd:restriction>
411 </xsd:simpleType>
442 <xsd:restriction base="xsd:normalizedString">
443 <xsd:whiteSpace value="collapse"/>
444 <xsd:pattern value="((/IntegratedSite:model/)|((\.\./)+)|((\./)(\.\./)*)|())((([A-Z][a-zA-Z0-9]+:model)|([A-Z][a-zA-Z0-9]+(\[[a-z][a-zA-Z0-9]*='[^\]]+'\])*))/)*MyClass\[id1='[^\]]+'\]\[id2='[^\]]+'\]"/>
445 </xsd:restriction>
446 </xsd:simpleType>
mim.xsd (https://github.com/elaufis/otp.git) XML Schema · 511 lines
78 <xs:simpleType>
79 <xs:restriction base="xs:string">
80 <xs:pattern value="[A-Z][A-Za-z0-9]*"/>
81 </xs:restriction>
82 </xs:simpleType>
375 <xs:simpleType>
376 <xs:restriction base="xs:string">
377 <xs:pattern value="(/[A-Z][A-Za-z0-9]*)*"/>
378 </xs:restriction>
379 </xs:simpleType>
415 <xs:simpleType>
416 <xs:restriction base="xs:string">
417 <xs:pattern value="[a-z][a-zA-Z0-9]*"/>
418 </xs:restriction>
419 </xs:simpleType>
Filelist (https://bitbucket.org/ultra_iter/vim-qt.git) Unknown · 729 lines
jslint.js (https://bitbucket.org/shuangxinyu/emacspack.git) JavaScript · 524 lines
304 option.browser=true;assume();}
305 function doAttribute(n,a,v){var u,x;if(a==='id'){u=typeof v==='string'?v.toUpperCase():'';if(ids[u]===true){warning("Duplicate id='{a}'.",nexttoken,v);}
306 if(option.adsafe){if(adsafe_id){if(v.slice(0,adsafe_id.length)!==adsafe_id){warning("ADsafe violation: An id must have a '{a}' prefix",nexttoken,adsafe_id);}else if(!/^[A-Z]+_[A-Z]+$/.test(v)){warning("ADSAFE violation: bad id.");}}else{adsafe_id=v;if(!/^[A-Z]+_$/.test(v)){warning("ADSAFE violation: bad id.");}}}
307 x=v.search(dx);if(x>=0){warning("Unexpected character '{a}' in {b}.",token,v.charAt(x),a);}
308 ids[u]=true;}else if(a==='class'||a==='type'||a==='name'){x=v.search(qx);if(x>=0){warning("Unexpected character '{a}' in {b}.",token,v.charAt(x),a);}
309 ids[u]=true;}else if(a==='href'||a==='background'||a==='content'||a==='data'||a.indexOf('src')>=0||a.indexOf('url')>=0){if(option.safe&&ux.test(v)){error("ADsafe URL violation.");}
310 urls.push(v);}else if(a==='for'){if(option.adsafe){if(adsafe_id){if(v.slice(0,adsafe_id.length)!==adsafe_id){warning("ADsafe violation: An id must have a '{a}' prefix",nexttoken,adsafe_id);}else if(!/^[A-Z]+_[A-Z]+$/.test(v)){warning("ADSAFE violation: bad id.");}}else{warning("ADSAFE violation: bad id.");}}}else if(a==='name'){if(option.adsafe&&v.indexOf('_')>=0){warning("ADsafe name violation.");}}}
311 function doTag(n,a){var i,t=htmltag[n],x;src=false;if(!t){error("Unrecognized tag '<{a}>'.",nexttoken,n===n.toLowerCase()?n:n+' (capitalization error)');}
312 if(stack.length>0){if(n==='html'){error("Too many <html> tags.",token);}
385 if(nexttoken.id!=='.'){warning("ADsafe violation.",that);break;}
386 advance('.');token.left=that;token.right=m;that=token;m=identifier();if(typeof m==='string'){countMember(m);}}}
387 return that;},160,true);infix('(',function(left,that){adjacent(prevtoken,token);nospace();var n=0,p=[];if(left){if(left.type==='(identifier)'){if(left.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)){if(left.value!=='Number'&&left.value!=='String'&&left.value!=='Boolean'&&left.value!=='Date'){if(left.value==='Math'){warning("Math is not a function.",left);}else if(option.newcap){warning("Missing 'new' prefix when invoking a constructor.",left);}}}}else if(left.id==='.'){if(option.safe&&left.left.value==='Math'&&left.right==='random'){warning("ADsafe violation.",left);}}}
388 if(nexttoken.id!==')'){for(;;){p[p.length]=parse(10);n+=1;if(nexttoken.id!==','){break;}
389 comma();}}