100+ results for '[a-z]'

Not the results you expected?

affiliate.php (https://gitlab.com/firstrate/firstrate) PHP · 181 lines

69

70 foreach ($emails as $email) {

71 if (utf8_strlen($email) > 0 && preg_match('/^[^\@]+@.*.[a-z]{2,15}$/i', $email)) {

72 $mail->setTo($email);

73 $mail->send();

simple-exp-tree.c (https://gitlab.com/dedstroyer/mai-workshops-2013) C · 330 lines

12 * term ::= (expr) | alnum

13 * op ::= <любые символы>

14 * alnum ::= [a-z]|[0-9]

15 *

16 * Важная деталь:

168 * term ::= (expr) | alnum

169 * op ::= <любые символы>

170 * alnum ::= [a-z]|[0-9]

171 */

172 tree_t tree_build(int depth) {

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)

111

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)

124

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)

137

AppDataAttributeHandler.js (https://github.com/eduardolundgren/senna.git) JavaScript · 269 lines

136

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 });

146

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);

160

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);

189

190 return $this->behavior->renderTemplate('objectTranslatedColumnSetter', array(

extpfeil.js (https://gitlab.com/Mirros/jsdelivr) JavaScript · 16 lines

13 */

14

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");

16

17

JSPVarNameCheck.java (https://github.com/danielreuther/liferay-portal.git) Java · 63 lines

37 String expectedVarName = null;

38

39 if (varName.matches(".*[a-z]Url")) {

40 expectedVarName = StringUtil.replaceLast(varName, "Url", "URL");

41 }

42 else if (varName.matches(".*[a-z]Html")) {

43 expectedVarName = StringUtil.replaceLast(

44 varName, "Html", "HTML");

release.sh (https://gitlab.com/x33n/angular.js) Shell · 69 lines

18 # the version number of the release.

19 # e.g. 1.2.12 or 1.2.12-rc.1

20 "--version-number=([0-9]+\.[0-9]+\.[0-9]+(-[a-z]+\.[0-9]+)?)"

21 # the codename of the release

22 "--version-name=(.+)"

app.js (https://gitlab.com/x33n/angular-101-from-n00b-to-ngExpert) JavaScript · 59 lines

17 }

18

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);

21

sfValidatorUrl.class.php (https://github.com/bheneka/gitta.git) PHP · 59 lines

22 (%s):// # protocol

23 (

24 ([a-z0-9-]+\.)+[a-z]{2,6} # a domain name

25 | # or

26 \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} # a IP address

String.js (https://github.com/KenBoyer/CompactCMS.git) JavaScript · 82 lines

40

41 hyphenate: function(){

42 return this.replace(/[A-Z]/g, function(match){

43 return ('-' + match.charAt(0).toLowerCase());

44 });

46

47 capitalize: function(){

48 return this.replace(/\b[a-z]/g, function(match){

49 return match.toUpperCase();

50 });

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

51 {

52 className: "name entity",

53 begin: "\\&[a-z]+;", end: "^"

54 },

55 {

15.10.2-1.js (https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk) JavaScript · 176 lines

73

74 status = inSection(3);

75 pattern = /a[a-z]{2,4}/;

76 string = 'abcdefghi';

77 actualmatch = string.match(pattern);

80

81 status = inSection(4);

82 pattern = /a[a-z]{2,4}?/;

83 string = 'abcdefghi';

84 actualmatch = string.match(pattern);

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

8 attr_accessible :name, :email, :password, :password_confirmation

9

10 email_regex = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i

11

12 validates :name, :presence => true,

ASIN.pm (https://bitbucket.org/intgr/musicbrainz-server.git) Perl · 64 lines

12 my $self = shift;

13

14 if ($self->url =~ m{^(?:https?:)?//(?:www.)?(.*?\.)([a-z]+)(?:\:[0-9]+)?/.*/([0-9B][0-9A-Z]{9})(?:[^0-9A-Z]|$)}i) {

15 my $country = $2;

16 $country = "US" if $country eq "com";

jquery.syntax.brush.java.js (https://github.com/voidit/nycga2.git) JavaScript · 41 lines

26 brush.push(access, {klass: 'access'});

27

28 brush.push({pattern: /\b_*[A-Z][\w:]+/g, klass: 'type'});

29

30 brush.push(Syntax.lib.cStyleComment);

user.rb (https://github.com/mikkor88/sample_app.git) Ruby · 64 lines

14 attr_accessible :name, :email, :password, :password_confirmation

15

16 email_regex = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i

17

18 validates :name, :presence => true,

CheckURL.pm (https://bitbucket.org/sfranchi/lyx.git) Perl · 246 lines

210

211 # Split the url to protocol,host,path

212 if ($url =~ /^([a-z]+):\/\/([^\/]+)(.*)$/) {

213 $protocol = $1;

214 $host = $2;

shBrushErlang.js (https://gitlab.com/1851616111/toropress) JavaScript · 52 lines

33

34 this.regexList = [

35 { regex: new RegExp("[A-Z][A-Za-z0-9_]+", 'g'), css: 'constants' },

36 { regex: new RegExp("\\%.+", 'gm'), css: 'comments' },

37 { regex: new RegExp("\\?[A-Za-z0-9_]+", 'g'), css: 'preprocessor' },

Bundle.properties (https://bitbucket.org/pymma/openesb-components.git) Properties File · 36 lines

21 #This file holds all logging messages for com.sun.jbi.engine.iep.messages package

22 #Message Id pattern IEPSE(package)(class)(message)where

23 # package: [a-z](2) (this allows 26 x 26 packages for IEPSE)

24 # class: [a-z]\d(2) (this allows 2600 classes per package)

user.rb (https://github.com/jpowell1218/rails_3_sample_app.git) Ruby · 66 lines

15 attr_accessible :name, :email, :password, :password_confirmation

16

17 email_regex = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i

18

19 validates :name, :presence => true,

password_strength.js (https://bitbucket.org/JakePratt/kupcakz.com.git) JavaScript · 39 lines

23 strength += Math.min(3, value.length - value.replace(/\W/g,"").length) * 15;

24 // Factor in the number of Upper case letters

25 strength += Math.min(3, value.length - value.replace(/[A-Z]/g,"").length) * 10;

26

27 // Normalizxe between 0 and 100

LiteralNamespacesSniff.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 66 lines

17 * @var string

18 */

19 private $literalNamespacePattern = '/^[\\\]{0,2}[A-Z][A-Za-z]+([\\\]{1,2}[A-Z][A-Za-z]+){2,}(?!\\\+)$/';

20

21 /**

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

111 ++$lineNumber;

112 $line = fgets($file);

113 preg_match('/public[ \t]+function[ \t]+action([A-Z]{1}[a-zA-Z0-9]+)[ \t]*\(/', $line, $matches);

114 if( $matches!==array() )

115 {

ApiSearchController.php (https://bitbucket.org/d1rk/li3_docs.git) PHP · 68 lines

28

29 // If the leading character is upper-case, only search models.

30 if (preg_match('/^[A-Z]/', $query)) {

31 $conditions['type'] = 'class';

32 }

RegexpTokenizerTest.java (https://github.com/ajub/sonar.git) Java · 47 lines

39 @Test

40 public void testClone() {

41 RegexpTokenizer tokenizer = new RegexpTokenizer("<r>", "</r>", "[a-z]+");

42 RegexpTokenizer cloneTokenizer = tokenizer.clone();

43 assertThat(tokenizer, is(not(cloneTokenizer)));

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

174 # - give them pep8 style names

175 #

176 caps = re.compile('([A-Z])')

177

178 def pep8(name):

rdoc.vim (https://github.com/evan2m/dotfiles.git) Vim Script · 50 lines

16

17

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]\|\.\)*: "

26

27 syn include @rdocR syntax/r.vim

objects.rb (https://github.com/quasor/redis-objects.git) Ruby · 138 lines

85 @redis_prefix ||= klass.name.to_s.

86 sub(%r{(.*::)}, '').

87 gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').

88 gsub(/([a-z\d])([A-Z])/,'\1_\2').

shBrushHaskell.js (https://github.com/livinglab/openlab.git) JavaScript · 38 lines

17 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings

18 { regex: /(-|!|#|\$|%|&amp;|\*|\+|\/|&lt;|=|&gt;|\?|@|\^|\||~|:|\.|\\)+/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

54 throw new \InvalidArgumentException('The header name can not be empty.');

55 }

56 if (!preg_match('(^[a-z][a-z\d]*(?:-[a-z\d]+)*$)iD', $name)) {

57 throw new \InvalidArgumentException(

58 sprintf(

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 * &lt;module name="MethodName"&gt;

52 * &lt;property name="format" value="^[a-z](_?[a-zA-Z0-9]+)*$"/&gt;

53 * &lt;/module&gt;

54 * </pre>

78 public MethodNameCheck()

79 {

80 super("^[a-z][a-zA-Z0-9]*$");

81 }

82

code_block_highlight.js (https://gitlab.com/523/gitlab-ce) JavaScript · 65 lines

6

7 const extractLanguage = (element) => element.getAttribute('lang');

8 export const backtickInputRegex = /^```([a-z]+)?[\s\n]$/;

9 export const tildeInputRegex = /^~~~([a-z]+)?[\s\n]$/;

CSS-min.js (https://github.com/leosamu/cartagen.git) JavaScript · 9 lines

7 */

8

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

17

18 // Replace all letters with their number equivalents

19 $checkString = preg_replace_callback('/[A-Z]/', array('self','alphaToNumberCallback'), $checkString);

20

21 // Perform mod 97 and subtract from 98

daijisen.js (https://github.com/shinout/kanabun-champ.git) JavaScript · 83 lines

46 })

47 .filter(function(v) {

48 if (v.match(/[a-z]/)) return false;

49 var len = v.length;

50 return len >=6 && len <= 8;

filepath.vim (https://bitbucket.org/deris0126/vital.vim.git) Vim Script · 173 lines

108 if s:is_windows

109 function! s:is_absolute(path)

110 return a:path =~? '^[a-z]:[/\]'

111 endfunction

112 else

account.rb (https://github.com/mathieul/videos.git) Ruby · 53 lines

18 validates_length_of :email, :within => 3..100

19 validates_uniqueness_of :email, :case_sensitive => false

20 validates_format_of :email, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i

21 validates_format_of :role, :with => /[A-Za-z]/

22

gams.js (https://github.com/themr0c/themr0ctalks.git) JavaScript · 153 lines

60 };

61 var DESCTEXT = { // Parameter/set/variable description text

62 begin: /[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,

63 excludeBegin: true,

64 end: '$',

136 {

137 className: 'function',

138 begin: /^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,

139 returnBegin: true,

140 contains: [

test-locate.R (https://github.com/qinwf/re2r.git) R · 296 lines

233 eq_with_class(re2_locate_all(character(0), NA), list())

234

235 expect_equal(as.integer(re2_locate_all(NA, "[a-z]")[[1]]),

236 c(NA_integer_, NA_integer_))

237 expect_equal(as.integer(re2_locate_all("?", "[a-z]")[[1]]),

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"));

84

85 // Put all closed tags into an array

86 preg_match_all("#</([a-z]+)>#iU", $tmp, $result);

87 $closedTags = $result[1];

88

ignoreCase.as (https://github.com/bsdf/trx.git) ActionScript · 114 lines

64 false, /xyz/.ignoreCase);

65

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)));

69

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)));

73

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

234 public static function isArgument($value)

235 {

236 return (preg_match('/^(\+|-{1,2})[a-z][-_a-z0-9]*/i', $value) === 1);

237 }

238 }

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

36 // duplicated from JpaClassDescriptor.

37 private static final Pattern GETTER_PATTERN = Pattern

38 .compile("^(is|get)([A-Z])(.*)$");

39

40 private static final Pattern SETTER_PATTERN = Pattern.compile("^set([A-Z])(.*)$");

S15.10.2.8_A3_T30.js (https://bitbucket.org/beala/test262.git) JavaScript · 43 lines

14 __string = "ab";

15

16 __executed = /^([a-z]+)*[a-z]$/.exec(__string);

17

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 }

26

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 }

31

S15.10.2.8_A3_T29.js (https://bitbucket.org/beala/test262.git) JavaScript · 43 lines

14 __string = "a";

15

16 __executed = /^([a-z]+)*[a-z]$/.exec(__string);

17

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 }

26

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 }

31

ClassesTest.php (https://gitlab.com/axeltizon/magento-demopoweraccess) PHP · 128 lines

110 } elseif ($moduleBlock) {

111 $this->assertFalse(false === strpos($name, '_'));

112 $this->assertRegExp('/^([A-Z][A-Za-z\d_]+)+$/', $name);

113 } else {

114 if (strpos($name, 'Magento') === false) {

string.hpp (https://gitlab.com/lwiz/BasicEventEngine) C++ Header · 136 lines

109 CHECK(util::string::is_floating("-a.e2") == false);

110

111 CHECK(util::string::matches("abc", "[a-z]*") == true);

112 CHECK(util::string::matches("abc", "...") == true);

113 CHECK(util::string::matches("abc", ".*") == true);

Utf16Utility.cs (https://github.com/dotnet/runtime.git) C# · 217 lines

53 uint mask = (combinedIndicator & 0x0080_0080u) >> 2;

54

55 return value ^ mask; // bit flip uppercase letters [A-Z] => [a-z]

56 }

57

83 uint mask = (combinedIndicator & 0x0080_0080u) >> 2;

84

85 return value ^ mask; // bit flip lowercase letters [a-z] => [A-Z]

86 }

87

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}/

36

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

41 $route['default_controller'] = "main";

42

43 $route['([a-z]+)'] = "page/$1";

44 $route['login'] = "login";

45 $route['signup'] = "signup";

index.html (https://gitlab.com/learnability/gaia) HTML · 63 lines

17 var Loader = window.CommonResourceLoader = {},

18 host = document.location.host,

19 domain = host.replace(/(^[\w\d-]+\.)?([\w\d]+\.[a-z]+)/, '$2');

20

21 Loader.domain = document.location.protocol + '//' + domain;

user.rb (https://github.com/mcgournj/sample_app.git) Ruby · 66 lines

6 has_many :microposts, :dependent => :destroy

7

8 email_regex = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i

9

10 validates :name, :presence => true,

views.py (https://github.com/gabrielhurley/horizon.git) Python · 287 lines

56 obj_ids = request.POST.getlist('object_ids')

57 action = request.POST['action']

58 obj_type = re.search('.delete([a-z]+)', action).group(1)

59 if not obj_ids:

60 obj_ids.append(re.search('([0-9a-z-]+)$', action).group(1))

Makefile (https://github.com/tyll/tinyos-2.x-contrib.git) Makefile · 57 lines

52

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 $@

55

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

58

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 */

12

13 var __string = new String("abc");

14

15 var __re = /[a-z]/;

16

17 __split = __string.split(__re);

NativeLinkListener.java (https://github.com/informedindividual/cms-ce.git) Java · 69 lines

12 private final LinkScanner scanner = new LinkScanner();

13

14 private final static Pattern PATTERN = Pattern.compile( "^([a-z]+)://([0-9]+).*" );

15

16 public void process( String input )

Proliphix-Thermostat.rb (https://github.com/rmillet42/WhatWeb.git) Ruby · 63 lines

49

50 # Model Detection

51 { :model=>/<script type="text\/javascript">[\r\n]*printStatusHead\(adStat,[\s]*"([^"]{4,5})","[a-z]?"\)[\r\n]*bodyStart\("status.shtml", "settings"\)/ },

52

53 # JavaScript Link

erlang.js (https://github.com/skolima/CruiseControl.NET.git) JavaScript · 201 lines

73 var VAR1 = {

74 className: 'variable',

75 begin: '\\b_([A-Z][A-Za-z0-9_]*)?',

76 relevance: 0

77 };

78 var VAR2 = {

79 className: 'variable',

80 begin: '[A-Z][a-zA-Z0-9_]*',

81 relevance: 0

82 };

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

8

9 testing_expression "[A-Z] <CharacterClassSpec::Foo> { def a_method; end }"

10

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

41

42 testing_expression "[A-Z] <CharacterClassSpec::ModFoo> { def a_method; end }"

43

44 it "matches single characters within that range, returning instances of SyntaxNode extended by the specified module" do

265

266 describe "a character class that gets cached because of a choice" do

267 testing_expression "[A-Z] 'a' / [A-Z]"

268

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

88 ${INSTALL_DATA} ${WRKSRC}/pam_smbpass/README \

89 ${DESTDIR}${PREFIX}/${DOCDIR}/README.pam_smbpass

90 cd ${WRKSRC}/pam_smbpass/samples; for f in [a-z]*; do \

91 ${INSTALL_DATA} $${f} \

92 ${DESTDIR}${PREFIX}/${EGDIR}/pam_smbpass/$${f}; \

help.awk (https://github.com/mend0za/pkgsrc-2011Q3.git) AWK · 188 lines

125 #

126 NF >= 1 && !/^[\t.]/ && !/^#*$/ {

127 w = ($1 ~ /^\#[A-Z]/) ? substr($1, 2) : ($1 == "#") ? $2 : $1;

128

129 # Reduce FOO.<param> and FOO.${param} to FOO.

storage_partition_config.h (https://github.com/chromium/chromium.git) C Header · 111 lines

32

33 // Creates a config tied to a specific domain.

34 // The |partition_domain| is [a-z]* UTF-8 string, specifying the domain in

35 // which partitions live (similar to namespace). |partition_domain| must NOT

36 // be an empty string. Within a domain, partitions can be uniquely identified

xhg-revision.el (https://github.com/demery/.emacs.d.git) Emacs Lisp · 126 lines

70 (while (> (point-max) (point))

71 (beginning-of-line)

72 (when (looking-at "^\\([a-z][a-z ]*[a-z]\\): +\\(.+\\)$")

73 (setq field (match-string-no-properties 1))

74 (setq field-value (match-string-no-properties 2))

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

186 return input;

187 }

188 return Regex.Replace(input, "([A-Z])", " $1", RegexOptions.Compiled).Trim();

189 }

190

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

145 {

146 className: 'constant',

147 begin: '(::)?(\\b[A-Z]\\w*(::)?)+',

148 relevance: 0

149 },

177 {

178 className: 'regexp',

179 begin: '/', end: '/[a-z]*',

180 illegal: '\\n',

181 contains: [hljs.BACKSLASH_ESCAPE, SUBST]

no-multi-spaces.js (https://gitlab.com/sdabi/execom) JavaScript · 144 lines

27 type: "object",

28 patternProperties: {

29 "^([A-Z][a-z]*)+$": {

30 type: "boolean"

31 }

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=.

85

86 See %SYSTEMWEB%.QuerySearch for details of the query language.

98 my ( $class, $options ) = @_;

99

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

45 $errors[] = 'No Differential Revision with that ID exists.';

46 }

47 } else if (preg_match('/^r([A-Z]+)(\w+)$/', $object_name, $matches)) {

48 $repo = id(new PhabricatorRepository())->loadOneWhere(

49 'callsign = %s',

dom-base.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 887 lines

34 UNDEFINED = undefined,

35

36 re_tag = /<([a-z]+)/i;

37

38 Y.DOM = {

dom.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 1491 lines

30 COMPARE_DOCUMENT_POSITION = 'compareDocumentPosition',

31

32 re_tag = /<([a-z]+)/i;

33

34 Y.DOM = {

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

610

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

4 properties:

5 a2:

6 pattern: "[A-Z]{2}"

7 type: string

8 a3:

9 pattern: "[A-Z]{3}"

10 type: string

11 active:

161 required: true

162 schema:

163 pattern: "[A-Z]{2}"

164 type: string

165 responses:

RangeToken.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 623 lines

19

20 /**

21 * This class represents a character class such as [a-z] or a period.

22 *

23 * @xerces.internal

AnnotationValidationConfigurationBuilder.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 816 lines

36 public class AnnotationValidationConfigurationBuilder {

37

38 private static final Pattern SETTER_PATTERN = Pattern.compile("set([A-Z][A-Za-z0-9]*)$");

39 private static final Pattern GETTER_PATTERN = Pattern.compile("(get|is|has)([A-Z][A-Za-z0-9]*)$");

validatorsSpec.js (https://gitlab.com/x33n/angular.js) JavaScript · 549 lines

101

102 it('should perform validations when the ngPattern scope value changes', function() {

103 $rootScope.regexp = /^[a-z]+$/;

104 var inputElm = helper.compileInput('<input type="text" ng-model="value" ng-pattern="regexp" />');

105

t7063-status-untracked-cache.sh (https://gitlab.com/Blueprint-Marketing/git) Shell · 574 lines

400

401 test_expect_success 'set up sparse checkout' '

402 echo "done/[a-z]*" >.git/info/sparse-checkout &&

403 test_config core.sparsecheckout true &&

404 git checkout master &&

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

510 'title' => array(

511 'tooShort' => array('rule' => array('minLength', 50)),

512 'onlyLetters' => array('rule' => '/^[a-z]+$/i')

513 ),

514 );

531 'last' => true

532 ),

533 'onlyLetters' => array('rule' => '/^[a-z]+$/i')

534 ),

535 );

ModelValidationTest.php (https://github.com/kunit/cakephp.git) PHP · 1701 lines

518 'title' => array(

519 'tooShort' => array('rule' => array('minLength', 50)),

520 'onlyLetters' => array('rule' => '/^[a-z]+$/i')

521 ),

522 );

539 'last' => false

540 ),

541 'onlyLetters' => array('rule' => '/^[a-z]+$/i')

542 ),

543 );

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

57

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;

125

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.:

858

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

494 runtime/termcap \

495 runtime/tools/README.txt \

496 runtime/tools/[a-z]*[a-z0-9] \

497 runtime/tutor/README.txt \

498 runtime/tutor/tutor \

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();}}

html.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 193 lines

59 <!-- Javascript: delegate on* attributes to Javascript mode -->

60 <SPAN_REGEXP AT_WORD_START="TRUE" DELEGATE="javascript::MAIN" HASH_CHAR="on" TYPE="MARKUP">

61 <BEGIN>on[a-z]+\s*=\s*(["'])</BEGIN>

62 <END>$1</END>

63 </SPAN_REGEXP>