[Frubar Paste] Hosted by SkyLime - Chat with us at XChannel IRC

Posted by LigH on Wed 10th Dec 12:12
download

  1. [10.12.2014 13:04:30] JavaScript - https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
  2.  
  3. Das verlinkte Skript wurde nicht geladen.
  4. [10.12.2014 13:04:30] JavaScript - https://regex101.com/r/aT9aR0/1
  5. Inline script thread
  6. Uncaught exception: ReferenceError: Undefined variable: jQuery
  7. Error thrown at line 6, column 0 in https://regex101.com/js/jquery.tools.1417769487.js:
  8.     (function($) {
  9. [10.12.2014 13:04:30] JavaScript - https://regex101.com/r/aT9aR0/1
  10. Inline script thread
  11. Uncaught exception: ReferenceError: Undefined variable: jQuery
  12. Error thrown at line 1, column 653 in <anonymous function>() in https://regex101.com/js/general.regex101.1417769488.js:
  13.     jQuery.uaMatch=function(ua){ua=ua.toLowerCase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}};
  14. called from line 1, column 310 in https://regex101.com/js/general.regex101.1417769488.js:
  15.     (function(){var matched,browser;jQuery.uaMatch=function(ua){ua=ua.toLowerCase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}};matched=jQuery.uaMatch(navigator.userAgent);browser={};if(matched.browser){browser[matched.browser]=true;browser.version=matched.version}if(browser.chrome){browser.webkit=true}else if(browser.webkit){browser.safari=true}jQuery.browser=browser})();
  16. [10.12.2014 13:04:30] JavaScript - https://regex101.com/r/aT9aR0/1
  17. Inline script thread
  18. Uncaught exception: TypeError: Cannot convert 'FLAVOR' to object
  19. Error thrown at line 1, column 68 in <anonymous function>() in https://regex101.com/js/colorParser.regex101.1417769489.js:
  20.     var self={},posix_re,regex_tokenizer,charclass_tokenizer,charclass_parts,quantifier,conditional,valid_k_g_structure,unicode_regex,optre,delimiter="/",flavor=FLAVOR.PCRE,subpatterns=[],capturingGroupCount=0,error_in_pattern=false,flags="",recentTokens={},justParsed=false,unmatchedParenPos=-1,INDENT_POW=2,formatted_regex="",MIN_GROUP_LEN=50;
  21. called from line 1, column 0 in https://regex101.com/js/colorParser.regex101.1417769489.js:
  22.     var Regex101Colorizer=function(){"use strict";var self={},posix_re,regex_tokenizer,charclass_tokenizer,charclass_parts,quantifier,conditional,valid_k_g_structure,unicode_regex,optre,delimiter="/",flavor=FLAVOR.PCRE,subpatterns=[],capturingGroupCount=0,error_in_pattern=false,flags="",recentTokens={},justParsed=false,unmatchedParenPos=-1,INDENT_POW=2,formatted_regex="",MIN_GROUP_LEN=50;var languageSupport={c:{1:1,2:1,3:0},A:{1:1,2:0,3:1},k:{1:1,2:0,3:0},g:{1:1,2:0,3:0},G:{1:1,2:0,3:0},X:{1:1,2:0,3:0},C:{1:1,2:0,3:0},K:{1:1,2:0,3:0},p:{1:1,2:0,3:0},P:{1:1,2:0,3:0},u:{1:-1,2:1,3:0},z:{1:1,2:0,3:0},Z:{1:1,2:0,3:1},v:{1:1,2:1,3:1},V:{1:1,2:0,3:0},h:{1:1,2:0,3:0},H:{1:1,2:0,3:0},R:{1:1,2:0,3:0},L:{1:-1,2:0,3:0},l:{1:-1,2:0,3:0},U:{1:-1,2:0,3:0},N:{1:1,2:0,3:0},Q:{1:1,2:0,3:0},E:{1:1,2:0,3:0},define:{1:1,2:-1,3:-1},conditional:{1:1,2:-1,3:1},check_delimiter:{3:-1,1:1,2:2},posix:{1:1,2:0,3:-1}};function checkSupport(obj,flavor){var isSupported=languageSupport[obj];if(isSupported===undefined)return 1;isSupported=isSupported[flavor];return isSupported===undefined?1:isSupported}function getTokenCharCode(token){if(token.length>1&&token.charAt(0)==="\\"){var t=token.slice(1);if(/^c[\u0000-\u007F]$/.test(t)){return t.charAt(1).toUpperCase().charCodeAt(0)^64}if(/^x(?:[0-9A-Fa-f]{2}|{[0-9A-Fa-f]+})|u[0-9A-Fa-f]{4}$/.test(t)){return parseInt(t.replace(/[^0-9a-f]/gi,""),16)}if(/^(?:[0-3][0-7]{1,2}|[1-7][0-7]|0)$/.test(t)){return parseInt(t,8)}if(t.length===1&&"cuxDdSsWwhHvVg".indexOf(t)>-1){return NaN}if(t.length===1){switch(t){case"a":return 7;case"b":return 8;case"f":return 12;case"n":return 10;case"r":return 13;case"t":return 9;case"e":return 27;default:return t.charCodeAt(0)}}}if(token!=="\\"){return token.charCodeAt(0)}return NaN}function parseCharclass(value,selected,modifiers,parentFormat,UTF16){var parts=charclass_parts.exec(value),parent,tokens=[],output="",lastToken={rangeable:false,type:regex_type.NONE},match,m,parts={opening:parts[1],content:parts[2],closing:parts[3]};if(checkSupport("posix",flavor)===1&&/^\[:.*?:\]$/.test(value)){parent={quantifiable:false,contents:value,group_contents:value,children:tokens,error:true,error_type:error_type.INVALID_POSIX_LOCATION,selected:selected,type:regex_type.CHARCLASS,modifiers:modifiers};error_in_pattern=true}else{parent={quantifiable:true,contents:parts.opening,group_contents:parts.opening,children:tokens,error:parts.closing?false:true,error_type:error_type.INCOMPLETE_CHARCLASS,selected:selected,type:regex_type.CHARCLASS,modifiers:modifiers};while(match=charclass_tokenizer.exec(parts.content)){m=match[0];if(m.charAt(0)==="\\"){if(/^\\[cuxE]$/.test(m)&&checkSupport(m.charAt(1),flavor)===1){tokens.push({contents:m,error:true,error_type:error_type.INCOMPLETE_TOKEN,type:regex_type.META});lastToken={type:regex_type.META,rangeable:false}}else if(/^\\[NlLUu]$/.test(m)&&checkSupport(m.charAt(1),flavor)===-1){tokens.push({contents:m,error:true,error_type:error_type.UNSUPPORTED_TOKEN,type:regex_type.META});lastToken={type:regex_type.META,rangeable:false}}else if(/^\\[dswb]$/i.test(m)){tokens.push({contents:m,type:regex_type.META});lastToken={rangeable:false,type:regex_type.META}}else if(m==="\\"){tokens.push({contents:m,error:true,error_type:error_type.INCOMPLETE_TOKEN,type:regex_type.META})}else if("pP".indexOf(m.charAt(1))>-1&&checkSupport(m.charAt(1),flavor)===1){var unicode_error_type;if(m.length===2||m.charAt(2)==="{"&&m.slice(-1)!=="}"){unicode_error_type=error_type.INCOMPLETE_TOKEN}else{unicode_error_type=error_type.UNKNOWN_SCRIPT}tokens.push({contents:m,type:regex_type.META,error:!unicode_regex.test(m),error_type:unicode_error_type});lastToken={type:regex_type.META,rangeable:false}}else if(/^\\Q[\s\S]*(?:\\E)?$/.test(m)&&checkSupport(m.charAt(1),flavor)===1){tokens.push({contents:m.substring(0,2),type:regex_type.QUOTE});var last=m.substring(m.length-2,m.length),textLength=m.length;parentFormat+="\\Q";if(last==="\\E"){textLength-=2}var quoteContent=m.substring(2,textLength);tokens.push({contents:quoteContent,type:regex_type.TEXT,modifiers:parent.modifiers});parentFormat+=quoteContent;if(last==="\\E"){tokens.push({contents:m.substring(m.length-2,m.length),type:regex_type.QUOTE})}lastToken={type:regex_type.QUOTE,rangeable:false}}else if(/^\\\d/.test(m)){tokens.push({contents:m,type:regex_type.OCTAL});lastToken={rangeable:lastToken.type!==regex_type.RANGE_HYPHEN,charCode:getTokenCharCode(m)}}else if(m.charAt(1)==="x"){var hexToken={contents:m,type:regex_type.HEX};if(m.charAt(2)==="{"){var hex=m.slice(3,-1);if(hex.length>4&&parent.modifiers.indexOf("u")===-1){hexToken.error=true;hexToken.error_type=error_type.TOO_LARGE_OFFSET}else if(parseInt(hex,16)>parseInt("10FFFF",16)){hexToken.error=true;hexToken.error_type=error_type.UNICODE_OVERFLOW}else if(UTF16&&parseInt(hex,16)>=parseInt("0xd800",16)&&parseInt(hex,16)<=parseInt("0xdfff",16)){hexToken.error=true;hexToken.error_type=error_type.SURROGATE}}tokens.push(hexToken);lastToken={rangeable:lastToken.type!==regex_type.RANGE_HYPHEN,charCode:getTokenCharCode(m)}}else if("abfntre".indexOf(m.charAt(1))!==-1){tokens.push({contents:m,type:regex_type.META});lastToken={rangeable:lastToken.type!==regex_type.RANGE_HYPHEN,charCode:getTokenCharCode(m)}}else{tokens.push({contents:m,type:regex_type.ESCAPED_TEXT});lastToken={rangeable:lastToken.type!==regex_type.RANGE_HYPHEN,charCode:getTokenCharCode(m)}}}else if(m==="-"){if(lastToken.rangeable){var lastIndex=charclass_tokenizer.lastIndex,nextToken=charclass_tokenizer.exec(parts.content);if(nextToken){var nextTokenCharCode=getTokenCharCode(nextToken[0]);if(!isNaN(nextTokenCharCode)&&lastToken.charCode>nextTokenCharCode){tokens.push({contents:m,type:regex_type.RANGE_HYPHEN,error:true,error_type:error_type.BAD_TEXT_RANGE})}else{tokens.push({contents:m,type:regex_type.RANGE_HYPHEN})}lastToken={rangeable:false,type:regex_type.RANGE_HYPHEN}}else{if(parts.closing){tokens.push({contents:m,type:regex_type.TEXT})}else{tokens.push({contents:m,type:regex_type.RANGE_HYPHEN})}}charclass_tokenizer.lastIndex=lastIndex}else{tokens.push({contents:m,type:regex_type.TEXT,error:false});lastToken={type:regex_type.TEXT,rangeable:lastToken.type!==regex_type.RANGE_HYPHEN}}}else if(checkSupport("posix",flavor)===1&&/\[:\^?.*?:\]/.test(m)){var posix={contents:m,type:regex_type.POSIX,error:false};posix.error=!/^\[:\^?(?:alnum|ascii|alpha|word|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit):\]$/.test(m);posix.error_type=error_type.INVALID_POSIX;tokens.push(posix);lastToken={type:regex_type.POSIX,rangeable:false}}else{tokens.push({contents:m,type:regex_type.TEXT,error:m===delimiter&&checkSupport("check_delimiter",flavor)===1,error_type:error_type.UNESCAPED_DELIMITER});lastToken={rangeable:m.length>1||lastToken.type!==regex_type.RANGE_HYPHEN,charCode:m.charCodeAt(m.length-1)}}parent.group_contents+=m;var last_token=tokens[tokens.length-1];if(last_token.error){error_in_pattern=true}last_token.modifiers=parent.modifiers}}if(!parent.error){parent.group_contents+="]"}return parent}function parse(pattern,options,caret){var parents=[{contents:"",quantifiable:false,level:0,group_contents:"",children:[],modifiers:options,lookbehind:false,alternations:0,maxalt:-1}],match,m,char0,char1,current_parent=parents[0],validator,xmode=options.indexOf("x")!==-1,Umode=options.indexOf("U")!==-1,Jmode=options.indexOf("J")!==-1,UTF16=options.indexOf("u")!==-1,previous_element=undefined,validateReferences=[],validateLookbehind=[],formatArr=[],parentFormat="";subpatterns=[];capturingGroupCount=0;error_in_pattern=false;unmatchedParenPos=-1;formatted_regex="";flags=options;var is_comment=false;while(match=regex_tokenizer.exec(pattern)){m=match[0];char0=m.charAt(0);char1=m.charAt(1);if(is_comment){if(m==="\n"||m==="\r"){is_comment=false;current_parent.group_contents+=m}else if(/\n/.test(m)){is_comment=false;var tempMatch=m.split("\n");current_parent.children[current_parent.children.length-1].contents+=tempMatch[0];regex_tokenizer.lastIndex=regex_tokenizer.lastIndex-(m.length-tempMatch[0].length);continue}current_parent.children[current_parent.children.length-1].contents+=m;if(m==="\n"||m==="\r"||regex_tokenizer.lastIndex===pattern.length){if(!/[\x01\x02\x03\x04\x06\x05\x07]/.test(parentFormat.slice(-1))){parentFormat+=" "}var commentContent=current_parent.children[current_parent.children.length-1].contents;if(commentContent.slice(-1)==="\n"){commentContent=commentContent.slice(0,-1)}parentFormat+=commentContent+"";parentFormat+=repeat("",current_parent.level*INDENT_POW);current_parent.forceSplit=true}continue}else if(xmode&&char0==="#"){var temp_comment={contents:m,type:regex_type.COMMENT,quantifiable:false};setModifiers(current_parent,temp_comment);current_parent.children.push(temp_comment);is_comment=true;continue}else if(char0==="["){var selected=caret===match.index||caret+1===match.index+m.length&&pattern.charAt(match.index+m.length-1)==="]"||m.charAt(1)==="^"&&caret===match.index+1;var parsedClass=parseCharclass(m,selected,current_parent.modifiers,parentFormat,UTF16);current_parent.children.push(parsedClass);current_parent.group_contents+=parsedClass.group_contents;parentFormat+=parsedClass.group_contents}else if(m==="|"){var alt={unmatched:false,level:current_parent.level,children:[],group_contents:"",contents:m,type:regex_type.ALTERNATOR,quantifiable:false,error:false,lookbehind:current_parent.lookbehind,alternations:0,maxalt:-1};current_parent.group_contents+=m;current_parent.alternations++;alt.error=current_parent.maxalt!==-1&&current_parent.alternations>current_parent.maxalt;alt.error_type=error_type.TOO_MANY_ALTERNATIONS;alt.selected=current_parent.selected||isGroupType(current_parent.type)&&caret==match.index;if(alt.selected){current_parent.selected=true}if(previous_element===undefined&&match.index===0||previous_element!==undefined&&previous_element.type===regex_type.ALTERNATOR){alt.error=true;alt.error_type=current_parent.level>0?error_type.TRUNCATING_ALTERNATOR_GROUP:error_type.TRUNCATING_ALTERNATOR}if(current_parent.type===regex_type.SUBPATTERN_GROUP){capturingGroupCount=current_parent.capturingGroupCount;current_parent.currSubpatterns=[]}else if(current_parent.type===regex_type.CONDITIONAL){parentFormat+="";parentFormat+=repeat("",current_parent.level*INDENT_POW)}current_parent.children.push(alt)}else if(m==="^"||m==="$"||m==="."){current_parent.group_contents+=m;current_parent.children.push({contents:m,type:regex_type.META,quantifiable:m==="."})}else if(char0==="("){if(/^\(\?#[\S\s]*\)?$/.test(m)){current_parent.group_contents+=m;var comment={contents:m,type:regex_type.GROUP_COMMENT,quantifiable:false,error:m.charAt(m.length-1)!==")",error_type:error_type.UNBALANCED_GROUP};setModifiers(current_parent,comment);current_parent.children.push(comment);if(comment.error)error_in_pattern=true;parentFormat+=m;continue}else if(validator=/^\(\*[\w:]*\)?/.exec(m)){current_parent.group_contents+=m;var verbAtBeginning=match.index===0;if(!verbAtBeginning){if(previous_element!==undefined&&previous_element.type===regex_type.VERB&&!previous_element.error){verbAtBeginning=true}}var verb={contents:m,type:regex_type.VERB,quantifiable:false,error:false};if(validator[0].charAt(validator[0].length-1)!==")"){verb.error=true;verb.error_type=error_type.INCOMPLETE_TOKEN}else if(!/^\(\*(?:UTF16|UCP|NO_START_OPT|CR|LF|CRLF|ANYCRLF|ANY|BSR_(?:ANYCRLF|UNICODE)|ACCEPT|F(?:AIL)?|COMMIT|PRUNE(?::\w+)?|SKIP(?::\w+)?|MARK(?::\w+)?|THEN(?::\w+)?)\)/.test(m)){verb.error=true;verb.error_type=error_type.UNKNOWN_VERB}else if(/\(\*(?:NO_START_OPT|CR|LF|CRLF|ANYCRLF|ANY|BSR_ANYCRLF|BSR_UNICODE|UTF(?:8|16|32)|UCP)\)/.test(m)&&!verbAtBeginning){verb.error=true;verb.error_type=error_type.VERB_INVALID_LOCATION}if(m==="(*UTF16)"){UTF16=true}current_parent.children.push(verb)}else if(/^\(\?(?:[0R]|[+-]?[1-9]+\d*|P[=>]\w+|&\w+)\)?/.test(m)){current_parent.group_contents+=m;var ref={contents:m,type:/^\(\?P=/.test(m)?regex_type.NAME_BACKREF:regex_type.REFERNCE_GROUP,quantifiable:true,error:m.charAt(m.length-1)!==")",error_type:error_type.UNBALANCED_GROUP,groupcount:capturingGroupCount};if(current_parent.lookbehind){ref.error=true;ref.error_type=error_type.BACKREF_IN_LOOKBEHIND}current_parent.children.push(ref);validateReferences.push(ref)}else if(/^\(\?[imsxXUJ-]*\)$/.test(m)){current_parent.group_contents+=m;current_parent.modifiers=getEffectiveModifiers(mergeInlineOptions(current_parent.modifiers,m.substring(2,m.length-1)));xmode=current_parent.modifiers.indexOf("x")!==-1;Umode=current_parent.modifiers.indexOf("U")!==-1;Jmode=current_parent.modifiers.indexOf("J")!==-1;current_parent.children.push({contents:m,type:regex_type.MODIFIERS,quantifiable:false,modifiers:current_parent.modifiers})}else{var selected=caret>=match.index&&caret<match.index+m.length;var new_parent={unmatched:true,type:regex_type.GROUP,quantifiable:true,level:current_parent.level+1,contents:m,group_contents:m,children:[],error:false,selected:selected,lookbehind:current_parent.lookbehind,alternations:0,maxalt:-1};setModifiers(current_parent,new_parent);if(m==="("){new_parent.type=regex_type.CAPTURING_GROUP;capturingGroupCount++;new_parent.ref_num=capturingGroupCount;if(current_parent.type===regex_type.SUBPATTERN_GROUP){new_parent.subpatterns=current_parent.subpatterns;new_parent.currSubpatterns=current_parent.currSubpatterns;new_parent.currSubpatterns.push("");new_parent.subpatterns.push("")}}else if(m.length>3&&/^\(\?[imsxXUJ-]*:$/.test(m)){new_parent.modifiers=getEffectiveModifiers(mergeInlineOptions(current_parent.modifiers,m.substring(2,m.length-1)));xmode=new_parent.modifiers.indexOf("x")!==-1;Umode=new_parent.modifiers.indexOf("U")!==-1;Jmode=new_parent.modifiers.indexOf("J")!==-1;new_parent.type=regex_type.GROUP_MODIFIER}else if(m==="(?|"){new_parent.type=regex_type.SUBPATTERN_GROUP;new_parent.capturingGroupCount=capturingGroupCount;new_parent.subpatterns=[];new_parent.currSubpatterns=[]}else if(/\(\?(?:P?<\w+>|'\w+')$/.test(m)){var subpattern=m.substring(3,m.length-1);if(subpattern.charAt(0)==="<"){subpattern=subpattern.substring(1);new_parent.type=regex_type.NAMED_P_GROUP}else{new_parent.type=regex_type.NAMED_GROUP}if(current_parent.subpatterns!==undefined){var subNum=current_parent.currSubpatterns.length;if(current_parent.subpatterns.indexOf(subpattern)===-1){if(subpatterns.indexOf(subpattern)!==-1&&!Jmode){new_parent.error=true;new_parent.error_type=error_type.DUPLICATE_SUBPATTERN}else{subpatterns.push(subpattern);if(current_parent.subpatterns[subNum]===undefined||current_parent.subpatterns[subNum]===""){current_parent.subpatterns.push(subpattern);current_parent.currSubpatterns.push(subpattern)}else{new_parent.error=true;new_parent.error_type=error_type.BAD_SUBPATTERN_INDEX_NAME}}}else{if(current_parent.subpatterns[subNum]===subpattern){current_parent.currSubpatterns.push(subpattern)}else if(subpatterns.indexOf(subpattern)!==-1&&!Jmode){new_parent.error=true;new_parent.error_type=error_type.DUPLICATE_SUBPATTERN}else{new_parent.error=true;new_parent.error_type=error_type.BAD_SUBPATTERN_INDEX_NAME}}}else if(subpatterns.indexOf(subpattern)!==-1&&!Jmode){new_parent.error=true;new_parent.error_type=error_type.DUPLICATE_SUBPATTERN}else{subpatterns.push(subpattern)}capturingGroupCount++;new_parent.ref_num=capturingGroupCount;new_parent.subpatterns=current_parent.subpatterns;new_parent.currSubpatterns=current_parent.currSubpatterns}else if(/\(\?<?[=!]$/.test(m)){if(m.charAt(2)==="<"){new_parent.type=regex_type.LOOKBEHIND;new_parent.lookbehind=true;validateLookbehind.push(new_parent)}else{new_parent.type=regex_type.LOOKAHEAD;new_parent.lookbehind=false}new_parent.quantifiable=false}else if(m==="(?"){new_parent.type=flavor===FLAVOR.JS?regex_type.GROUP:regex_type.CONDITIONAL;new_parent.maxalt=1;new_parent.error=true;new_parent.error_type=error_type.INVALID_GROUP_STRUCTURE}else if(m==="(?(DEFINE)"){new_parent.maxalt=0;new_parent.quantifiable=false;new_parent.type=regex_type.DEFINE}else if(m!=="(?>"&&m!=="(?:"){new_parent.error=true;new_parent.error_type=error_type.INVALID_GROUP_STRUCTURE}if(xmode&&current_parent.type!==regex_type.CONDITIONAL){parentFormat+="";parentFormat+=repeat("",current_parent.level*INDENT_POW)}formatArr.push(parentFormat);parentFormat="";current_parent.children.push(new_parent);parentFormat+=new_parent.contents;if(xmode&&new_parent.type!==regex_type.CONDITIONAL){parentFormat+="";parentFormat+=repeat("",new_parent.level*INDENT_POW)}current_parent=new_parent;parents.push(current_parent)}}else if(char0===")"){if(current_parent.level===0){current_parent.group_contents+=m;current_parent.children.push({contents:")",error:true,error_type:error_type.UNBALANCED_PAREN});unmatchedParenPos=regex_tokenizer.lastIndex-1}else{var old_parent=parents.pop();old_parent.unmatched=false;old_parent.group_contents+=")";if(!old_parent.selected){old_parent.selected=caret==match.index}current_parent=parents[parents.length-1];current_parent.group_contents+=old_parent.group_contents;if(current_parent.type===regex_type.CONDITIONAL){if(current_parent.children.length===1){if(conditional.test(old_parent.group_contents)){current_parent.condition=old_parent;current_parent.error=false;if(old_parent.children.length>0&&old_parent.children[0].type===regex_type.QUANTIFIER){old_parent.children[0].type=regex_type.TEXT;old_parent.children[0].error=false;error_in_pattern=old_parent.children[0].global_error}if(old_parent.type!==regex_type.LOOKAHEAD&&old_parent.type!==regex_type.LOOKBEHIND){if(isGroupType(old_parent.type)){capturingGroupCount--}for(var i=0,oldLen=old_parent.children.length;i<oldLen;i++){old_parent.contents+=old_parent.children[i].contents}old_parent.children=[];old_parent.groupcount=capturingGroupCount;validateReferences.push(old_parent);old_parent.unmatched=true;old_parent.contents+=")"}}else{new_parent.maxalt=-1}}else{new_parent.maxalt=-1}}if(old_parent.selected&&old_parent.alternations>0){for(var i=0,oldLen=old_parent.children.length;i<oldLen;i++){var child=old_parent.children[i];if(child.type===regex_type.ALTERNATOR){child.selected=true}}}if(xmode){parentFormat+="";parentFormat+=repeat("",current_parent.level*INDENT_POW)}parentFormat+=")";if(!old_parent.forceSplit&&!(old_parent.group_contents.length>MIN_GROUP_LEN||old_parent.alternations>2&&old_parent.group_contents.length>MIN_GROUP_LEN/3)){parentFormat=parentFormat.replace(/[\x03\x01]/g,"")}parentFormat=formatArr.pop()+parentFormat;xmode=current_parent.modifiers.indexOf("x")!==-1;Umode=current_parent.modifiers.indexOf("U")!==-1;if(xmode){parentFormat+="";parentFormat+=repeat("",current_parent.level*INDENT_POW)}current_parent.forceSplit=true}}else if(char0==="\\"){if(/^\d/.test(char1)){var num=+m.substring(1);if(char1!=0&&num>0){if(num<10){var backref={contents:m,type:regex_type.NUM_BACKREF,quantifiable:true,error:false,groupcount:capturingGroupCount};if(current_parent.lookbehind){backref.error=true;backref.error_type=error_type.BACKREF_IN_LOOKBEHIND}current_parent.children.push(backref);validateReferences.push(backref)}else{if(num<=capturingGroupCount){var backref={contents:m,type:regex_type.NUM_BACKREF,quantifiable:true,groupcount:capturingGroupCount};if(current_parent.lookbehind){backref.error=true;backref.error_type=error_type.BACKREF_IN_LOOKBEHIND}current_parent.children.push(backref);validateReferences.push(backref)}else{var nonBackrefDigits="",isOctal=false;do{if(/^(?:[0-3][0-7]{1,2}|[1-7][0-7]?)$/.test(num)){current_parent.children.push({contents:"\\"+num,type:regex_type.OCTAL,quantifiable:true});if(nonBackrefDigits.length>0){var backref={contents:nonBackrefDigits,type:regex_type.TEXT,quantifiable:true};if(current_parent.lookbehind){backref.error=true;backref.error_type=error_type.BACKREF_IN_LOOKBEHIND}current_parent.children.push(backref)}isOctal=true;break}nonBackrefDigits=/[0-9]$/.exec(num)[0]+nonBackrefDigits;num=Math.floor(num/10)}while(num>0);if(!isOctal){current_parent.children.push({contents:m,type:regex_type.NUM_BACKREF,quantifiable:false,error:true,error_type:error_type.INVALID_BACKREF})}}var nonBackrefDigits="",num=+m.substring(1);while(num>capturingGroupCount){if(Math.floor(num/10)===0){if(/^(?:[0-3][0-7]{1,2}|[1-7][0-7])/.test(m))num=0;break}else{nonBackrefDigits=/[0-9]$/.exec(num)[0]+nonBackrefDigits;num=Math.floor(num/10)}}}}else{current_parent.children.push({contents:m,type:regex_type.OCTAL,quantifiable:true})}}else if(m==="\\"){current_parent.children.push({contents:m,type:regex_type.TEXT,quantifiable:false,error:true,error_type:error_type.INCOMPLETE_TOKEN})}else if("GDdHhSsVvWwaefnrtXAZzBbRKCulLUcxNkg0pPEQN".indexOf(char1)!==-1&&checkSupport(char1,flavor)!==0){var meta={contents:m,type:regex_type.META,quantifiable:true};if("uLlUE".indexOf(char1)!==-1&&checkSupport(char1,flavor)===-1){meta.error=true;meta.error_type=error_type.UNSUPPORTED_TOKEN}else if(/^\\[cxkguE]$/.test(m)){meta.error=true;meta.error_type=error_type.INCOMPLETE_TOKEN}else if("GAZzBbK".indexOf(char1)>-1){meta.quantifiable=false}else if(char1==="x"){meta.type=regex_type.HEX;if(m.charAt(2)==="{"){var hex=m.slice(3,-1);if(hex.length>4&&current_parent.modifiers.indexOf("u")===-1){meta.error=true;meta.error_type=error_type.TOO_LARGE_OFFSET}else if(parseInt(hex,16)>parseInt("10FFFF",16)){meta.error=true;meta.error_type=error_type.UNICODE_OVERFLOW}else if(UTF16&&parseInt(hex,16)>=parseInt("0xd800",16)&&parseInt(hex,16)<=parseInt("0xdfff",16)){meta.error=true;meta.error_type=error_type.SURROGATE}}}else if("pP".indexOf(char1)>-1){meta.error=!unicode_regex.test(m);if(m.length===2||m.charAt(2)==="{"&&m.slice(-1)!=="}"){meta.error_type=error_type.INCOMPLETE_TOKEN}else{meta.error_type=error_type.UNKNOWN_SCRIPT}}else if(char1==="Q"){meta.type=regex_type.QUOTE;meta.contents="\\Q";parentFormat+="\\Q";current_parent.children.push(meta);var quoteStr=m.substring(2),endingToken=m.substring(m.length-2,m.length);var quoteStrToken;if(endingToken==="\\E"){quoteStrToken={contents:quoteStr.slice(0,-2),type:regex_type.QUOTE_TEXT,quantifiable:false};current_parent.children.push(quoteStrToken);var endQuote={contents:"\\E",type:regex_type.QUOTE,quantifiable:false};setModifiers(current_parent,endQuote);current_parent.children.push(endQuote);parentFormat+=quoteStrToken.contents}else{if(/[^\\](?:\\\\)*\\$/.test(quoteStr)){quoteStrToken={contents:quoteStr.slice(0,-1),type:regex_type.QUOTE_TEXT,quantifiable:false};current_parent.children.push(quoteStrToken);var quoteError={contents:"\\",type:regex_type.TEXT,quantifiable:false,error:true,error_type:error_type.INCOMPLETE_TOKEN};setModifiers(current_parent,quoteError);current_parent.children.push(quoteError)}else{quoteStrToken={contents:quoteStr,type:regex_type.QUOTE_TEXT,quantifiable:false};current_parent.children.push(quoteStrToken)}}setModifiers(current_parent,meta);setModifiers(current_parent,quoteStrToken)}else if(char1==="k"||char1==="g"){meta.error=!valid_k_g_structure.test(m);meta.error_type=error_type.INCOMPLETE_TOKEN;meta.groupcount=capturingGroupCount;validateReferences.push(meta);if(!meta.error){if(char1==="k"){meta.type=regex_type.NAME_BACKREF}else if(/^\\g(?:{-?\d+}|\d+)$/.test(m)){meta.type=regex_type.NUM_BACKREF}else if(/^\\g{\w+}$/.test(m)){meta.type=regex_type.NAME_BACKREF}else{meta.type=regex_type.REFERNCE_GROUP}if(current_parent.lookbehind){meta.error=true;meta.error_type=error_type.BACKREF_IN_LOOKBEHIND}}}else if(char1==="N"){meta.error=m.length>2;meta.error_type=error_type.UNSUPPORTED_TOKEN}if(char1!=="Q"){current_parent.children.push(meta)}}else{current_parent.children.push({contents:m,type:regex_type.ESCAPED_TEXT,quantifiable:true,error:current_parent.modifiers.indexOf("X")!==-1,error_type:error_type.X_MODE})}current_parent.group_contents+=m}else if(quantifier.test(m)){current_parent.group_contents+=m;var quant={contents:m,type:regex_type.QUANTIFIER,error:false,selected:false,quantifiable:false,prev:previous_element,Umode:Umode};if(previous_element){if((previous_element.type===regex_type.QUANTIFIER||previous_element.type===regex_type.GROUP_QUANTIFIER)&&previous_element.prev!==undefined&&previous_element.prev.quantifier!==undefined){if(previous_element.type===regex_type.GROUP_QUANTIFIER){quant.type=regex_type.GROUP_QUANTIFIER;quant.level=previous_element.level;previous_element.prev.group_contents+=m}quant.error=previous_element.error||!quantifier.test(previous_element.contents+m);quant.error_type=previous_element.error_type||error_type.NOT_QUANTIFIABLE;quant.selected=previous_element.selected;previous_element.prev.quantifier+=m;previous_element.Umode=Umode}else if(previous_element.error){quant.error=true;quant.error_type=error_type.NOT_QUANTIFIABLE}else if(previous_element.quantifiable){var interval=/^{([0-9]+)(,([0-9]*))?/.exec(m);if(interval){previous_element.from=interval[1];previous_element.to=interval[2]?interval[3]:interval[1]}if(interval&&(+interval[1]>65535||interval[3]&&+interval[3]>65535)){quant.error=true;quant.error_type=error_type.TOO_LARGE_QUANTIFIER}else if(interval&&interval[3]&&+interval[1]>+interval[3]){quant.error=true;quant.error_type=error_type.BAD_QUANTIFIER_RANGE}else if(current_parent.lookbehind&&!/^{(\d+)(?:,\1)?}$/.test(m)){quant.error=true;quant.error_type=error_type.LOOKBEHIND_QUANTIFIER}else{if(isGroupType(previous_element.type)){quant.type=regex_type.GROUP_QUANTIFIER;quant.level=previous_element.level}if(isGroupType(previous_element.type)||previous_element.type===regex_type.CHARCLASS){quant.selected=previous_element.selected||caret>=match.index&&caret<match.index+m.length;if(quant.selected){previous_element.selected=true;if(previous_element.alternations>0){for(var i=0,prevLen=previous_element.children.length;i<prevLen;i++){var child=previous_element.children[i];if(child.type===regex_type.ALTERNATOR){child.selected=true}}}}}previous_element.quantifier=m;previous_element.quantifier_token=quant;if(previous_element!==current_parent&&previous_element.group_contents){previous_element.group_contents+=m}}}else{quant.error=true;quant.error_type=error_type.NOT_QUANTIFIABLE}}else{quant.error=true;quant.error_type=error_type.NOT_QUANTIFIABLE}current_parent.children.push(quant);if(previous_element&&isGroupType(previous_element.type)){quant.modifiers=previous_element.modifiers}}else{current_parent.group_contents+=m;current_parent.children.push({contents:m,type:regex_type.TEXT,quantifiable:true,error:m===delimiter&&(checkSupport("check_delimiter",flavor)===1||checkSupport("check_delimiter",flavor)===2),error_type:error_type.UNESCAPED_DELIMITER})}var last_token=current_parent.children[current_parent.children.length-1];if(last_token!==undefined){if(!isGroupType(last_token.type)&&last_token.type!==regex_type.CHARCLASS){if(xmode&&last_token.type!==regex_type.ESCAPED_TEXT&&last_token.type!==regex_type.QUOTE_TEXT){if(last_token.type===regex_type.GROUP_QUANTIFIER){if(previous_element.type===regex_type.GROUP_QUANTIFIER){parentFormat=parentFormat.slice(0,-1)}else{parentFormat+=""}parentFormat+=last_token.contents+""}else{parentFormat+=last_token.contents.replace(/\s/g,"")}if(last_token.type===regex_type.ALTERNATOR){parentFormat+="";parentFormat+=repeat("",current_parent.level*INDENT_POW)}}else{parentFormat+=last_token.contents}}if(xmode&&!/^\s*$/.test(m)||!xmode){previous_element=last_token}if(last_token.modifiers===undefined){setModifiers(current_parent,last_token)}if(last_token.error){last_token.global_error=error_in_pattern;error_in_pattern=true}}else{previous_element=undefined}}while(parents.length>1){var parent=parents.pop();parent.error=true;parent.error_type=error_type.UNBALANCED_GROUP;error_in_pattern=true}for(var i=0,len=validateReferences.length;i<len;i++){var token=validateReferences[i];if(!token.error&&token.group_contents!=="(R)"&&token.contents!=="(?R)"&&token.contents!=="(?0)"){var ref=token.contents.replace(/^(?:\\[gk]|\((?:R|\?P[=>]))|[^-+\w]/g,"");var num=parseInt(ref);token.reference=ref;if(ref.charAt(0)==="-"||ref.charAt(0)==="+"){var ref_relative=num+parseInt(token.groupcount);num=ref_relative;token.reference=ref_relative;if(ref.charAt(0)==="-"){token.reference++}ref=ref_relative}if(ref!=num&&subpatterns.indexOf(ref)===-1||(num>capturingGroupCount||num<0)&&subpatterns.indexOf(ref)===-1){token.error=true;token.error_type=error_type.NON_EXISTENT_REFERENCE;error_in_pattern=true;if(token.quantifier){token.quantifier_token.error=true;token.quantifier_token.error_type=error_type.NOT_QUANTIFIABLE}}}}formatted_regex=parentFormat;for(var i=0,len=validateLookbehind.length;i<len;i++){checkLength(validateLookbehind[i].children,-1,0,validateLookbehind[i])}function checkLength(token,maxLen,currLen,parent){var len=currLen;for(var i=0,arrLen=token.length;i<arrLen;i++){var tok=token[i];if(tok.error)continue;if(tok.type===regex_type.TEXT){var tempContents=tok.contents;if(current_parent.modifiers.indexOf("x")!==-1){tempContents=tempContents.replace(/\s+/g,"")}len+=tempContents.length}else if(tok.type===regex_type.ESCAPED_TEXT){len+=tok.contents.length-1}else if(tok.type===regex_type.CHARCLASS){len++}else if(tok.type===regex_type.META||tok.type===regex_type.HEX||tok.type===regex_type.OCTAL){if(/^(?:[\^$]|\\[GAZzBbK])$/.test(tok.contents))continue;else if(UTF16&&tok.contents==="\\C"){validateParent(parent,99,-1)}len++}else if(tok.type===regex_type.LOOKAHEAD||tok.type===regex_type.LOOKBEHIND){continue}else if(isGroupType(tok.type)){len+=checkLength(tok.children,-1,0,tok);continue}else if(tok.type===regex_type.ALTERNATOR){validateParent(parent,maxLen,len);maxLen=len;len=0;continue}else{continue}if(tok.from){len+=parseInt(tok.from)-1}}validateParent(parent,maxLen,len);return len}function validateParent(parent,maxLen,currLen){if(parent!==undefined&&maxLen>-1&&maxLen!==currLen){parent.error=true;parent.error_type=error_type.NOT_FIXED_WIDTH;error_in_pattern=true}}function setModifiers(parent,token){token.modifiers=parent.modifiers}function getCurrentModifiers(parent){if(parent.inline_modifiers!==inline_modifiers){return getEffectiveModifiers(mergeInlineOptions(parent.raw_modifiers||parent.modifiers,inline_modifiers))}return getEffectiveModifiers(mergeInlineOptions(inline_modifiers,parent.raw_modifiers||parent.modifiers))}justParsed=true;return parents}function getEffectiveModifiers(modifiers){return modifiers.split("-")[0]}function mergeInlineOptions(old_opt,new_opt){var P1="",P2="",N1="",N2="";var old_split=(old_opt||"").split("-");var new_split=(new_opt||"").split("-");P1=old_split[0];P2=new_split[0];if(old_split.length>1){N1=old_split[1]}if(new_split.length>1){N2=new_split[1]}var P2_temp=removeMod(P1,N2);var N2_temp=removeMod(N1,P2);P2+=P2_temp;N2+=N2_temp;if(N2){return P2+"-"+N2}return P2;function removeMod(fromMod,removeMod){var a=removeMod.split(""),tempStr=fromMod;while(a.length){tempStr=tempStr.split(a.pop()).join("")}return tempStr}}self.colorize=function(pattern,options,caret,d,f,showCaret){var tokens=self.getTokens(pattern,options,caret,d,f);return self.makeHtml(tokens[0].children,false,!showCaret)};self.getTokens=function(pattern,options,caret,d,f){if(d!==undefined){delimiter=d}if(f!==undefined){flavor=f}initializeRegex();recentTokens=parse(pattern,options,caret);return recentTokens};function initializeRegex(){switch(flavor){case FLAVOR.JS:regex_tokenizer=/\[\^?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\/\r\n]+(?![+*?]|{[0-9]+(?:,[0-9]*)?})|[^.?*+^${[()|\\/\r\n]|[\S\s]/g;charclass_tokenizer=/[^\\-]+|-|\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)/g;charclass_parts=/^(\[\^?)((?:[^\\\]]+|\\[\S\s]?)*)(]?)$/;quantifier=/^(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??$/;optre=/^[img]*$/;break;case FLAVOR.PYTHON:regex_tokenizer=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:(?:0[0-3][0-7]{0,2}|[1-3][0-7][0-7])|[1-9][0-9]*|x[0-9A-Fa-f]{2}|[\S\s]?)|\((?:\?(?:(?:<[!=]|[!:=])!?|P<\w+>|P=\w+\)?|#[^\)]+\)?|[imsux]+\))?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^#.?*+^${[()|\\/\r\n]+(?![+*?]|{[0-9]+(?:,[0-9]*)?})|[^#.?*+^${[()|\\/\r\n]|[\S\s]/g;charclass_tokenizer=/[^\\-]+|-|\\(?:0[0-3][0-7]{0,2}|[1-3][0-7][0-7]|x[0-9A-Fa-f]{2}|[\S\s]?)/g;
  23. [10.12.2014 13:04:31] JavaScript - https://www.google-analytics.com/analytics.js
  24.  
  25. Das verlinkte Skript wurde nicht geladen.
  26. [10.12.2014 13:04:31] JavaScript - https://regex101.com/r/aT9aR0/1
  27. Inline script thread
  28. Uncaught exception: ReferenceError: Undefined variable: $
  29. Error thrown at line 1, column 0 in https://regex101.com/js/common.regex101.1417769489.js:
  30.     $(document).ready(function(){var mpl=null;var fdd=null;var fnd=null;var generalTimeout=null;var currentData={};var fadeOutTime=200;var minTreeviewWidth=250;function createRichTextarea(regexElement,options,delimiter,ur){var newId="#richtext_"+regexElement.id+"_container",container_elem=document.querySelector(newId);var caret=newId+" .caret";if(!container_elem)return;if($.browser.msie){$(newId+" pre").append("&nbsp;")}var updateCounter=0;var element=container_elem.querySelector("#regex_colors span");var height_element=container_elem.querySelector(".colorizer_height");$(regexElement).on("keydown",_.debounce(function(e){if(arrowKeys.indexOf(e.keyCode)!==-1){doColorize($(regexElement).is(":focus"))}},0));$(regexElement).on("formatRegex",function(e){var oldVal=regexElement.value;regexElement.value=Regex101Colorizer.formatRegex(regexElement.value,options.value,getCaretPosition(regexElement),delimiter[textMethod],getFlavor(),false);$(regexElement).trigger("updateRegexColors");if(oldVal===regexElement.value){var html='<div id="dimmer-contents">';html+='<div class="label">Nothing happened :(</div>';html+="I failed to do anything to your regex, which means one of the following:";html+='<ul style="margin: 4px 0;color: #285097;">';html+="<li>You have already clicked 'format regex' once already</li>";html+="<li>You have no block in your regex under the effect of (?x)</li>";html+="<li>You're already super good at formatting regex yourself</li>";html+="</ul>";html+="</div>";html+='<div id="button-area" class="button-area">';html+='<div id="permalink_close" class="button">close</div>';html+="</div>";showPopup(html)}});$(regexElement).on("keypress",autocompleteChars);$(regexElement).on("keydown",autocompleteDelete);var autocompeteList=[{left:"[",right:"]",trigger:91,skipCode:93,allowSkip:false},{left:"{",right:"}",trigger:123,skipCode:125,allowSkip:false},{left:"(",right:")",trigger:40,skipCode:41,allowSkip:false,extra:function(pos){return Regex101Colorizer.hasUnmatchedParen()<pos}}];function autocompleteDelete(e){if(autoCompleteRegex()){if(e.which===8){var firstChar=this.selectionStart-1;var lastChar=this.selectionEnd;var isSelection=lastChar-firstChar!==1;var prevChar="";var nextChar="";if(firstChar>=0){prevChar=this.value[firstChar]}if(nextChar<this.value.length){nextChar=this.value[lastChar]}if(firstChar>this.value.length||isSelection)return;for(var i=0,len=autocompeteList.length;i<len;i++){var entry=autocompeteList[i];if(prevChar===entry.left&&nextChar===entry.right){e.preventDefault();e.stopPropagation();this.value=this.value.slice(0,firstChar)+this.value.slice(lastChar+1);this.selectionStart=this.selectionEnd=firstChar;$(this).trigger("input");return}}}}}function checkIfEscaped(string,pos,isEscaped){if(pos>=0&&string.charAt(pos)==="\\"){return checkIfEscaped(string,pos-1,!isEscaped)}return isEscaped}function autocompleteChars(e){if(autoCompleteRegex()){var firstChar=this.selectionStart-1;var lastChar=this.selectionEnd;var isSelection=lastChar-firstChar!==1;var prevChar="";var nextChar="";if(firstChar>=0){if(checkIfEscaped(this.value,firstChar-1,false)){firstChar=""}else if(checkIfEscaped(this.value,firstChar,false)){return}else{prevChar=this.value.charAt(firstChar)}}if(nextChar<this.value.length){nextChar=this.value.charAt(lastChar)}var leftChar="";var rightChar="";for(var i=0,len=autocompeteList.length;i<len;i++){var entry=autocompeteList[i];if(!isSelection&&e.which===entry.skipCode&&nextChar===entry.right){e.preventDefault();e.stopPropagation();this.selectionStart=this.selectionEnd=this.selectionStart+1;$(this).trigger("input");return}else if(!isSelection&&entry.allowSkip&&e.which===entry.trigger&&prevChar===entry.left&&nextChar!==entry.right){return}else if(!isSelection&&e.which===entry.trigger&&nextChar===entry.left){return}else if(entry.trigger===e.which&&(!entry.extra||entry.extra(this.selectionStart))){e.preventDefault();e.stopPropagation();var currPos={start:this.selectionStart,end:this.selectionEnd};var val=this.value;this.value=val.slice(0,currPos.start)+entry.left+val.slice(currPos.start,currPos.end)+entry.right+val.slice(currPos.end);this.selectionStart=currPos.start+1;this.selectionEnd=currPos.end+1;$(this).trigger("input");return}}}}$(regexElement).on("keyup",function(e){blinkCaret();if(updateCounter>4){slowUpdate(true)}updateCounter=0});var timeout;var stackTimeout;var redoStack=[];var undoStack=[];var currentRevision={value:""};$(regexElement).on("keydown",function(e){if(e.ctrlKey||e.metaKey){var state,pushStack=false;if(!e.shiftKey&&e.which===90){state=undoStack.pop();pushStack=redoStack}else if(e.shiftKey&&e.which===90||e.which===89){state=redoStack.pop();pushStack=undoStack}if(state){e.preventDefault();e.stopPropagation();pushStack.push(currentRevision);regexElement.value=state.value;regexElement.selectionStart=state.start;regexElement.selectionEnd=state.end;currentRevision=state;$(regexElement).trigger("input");return}}});$(regexElement).on("updateRegexColors propertychange mousedown input",function(e){height_element[textMethod]=regexElement.value;if(!wrapNewlines()){height_element[textMethod]+=" "}this.scrollLeft=1;setTimeout(function(){doColorize($(regexElement).is(":focus"));$("#sub").trigger("updateColors");if(stackTimeout)clearTimeout(stackTimeout);stackTimeout=setTimeout(function(){if(regexElement.value!==currentRevision.value){if(undoStack.length>500){redoStack.push(undoStack.shift())}undoStack.push(currentRevision);currentRevision={value:regexElement.value,start:regexElement.selectionStart,end:regexElement.selectionEnd};redoStack=[]}},200)},0);blinkCaret();if(e.type==="updateRegexColors"){slowUpdate(true)}else if(e.type!=="mousedown"){if(updateCounter>4){cancelMatching()}else{slowUpdate(true)}updateCounter++}});$(options).on("propertychange input",function(e){if(timeout)clearTimeout(timeout);timeout=setTimeout(function(){doColorize(false)},0)});$(regexElement).on("focusout",function(){setTimeout(function(){hideCaret();$(element).children().removeClass("selected_paren");if(highlightInteraction()){$("#richtext_test_colors span").removeClass("selected_paren_test")}},0)});$(regexElement).on("focusin",function(){setTimeout(function(){showCaret();blinkCaret();doColorize($(regexElement).is(":focus"))},0)});function doColorize(showCaret){var colorizer_data=Regex101Colorizer.colorize(regexElement.value,options.value,getCaretPosition(regexElement),delimiter[textMethod],getFlavor(),showCaret);element=replaceHtml(element,colorizer_data);updateTooltipData()}var caretTimer,hideCaretLock=false;function showCaret(){hideCaretLock=false;if(caretTimer)clearTimeout(caretTimer);$(caret).css("visiblity","visible")}function hideCaret(){hideCaretLock=true;if(caretTimer)clearTimeout(caretTimer);caretTimer=setTimeout(function(){$(caret).css("visibility","hidden")},0)}function blinkCaret(){if(caretTimer)clearTimeout(caretTimer);if(hideCaretLock||!$(regexElement).is(":focus")){$(caret).css("visibility","hidden");return}caretTimer=setTimeout(function(){if($(caret).css("visibility")==="visible"){$(caret).css("visibility","hidden")}else{$(caret).css("visibility","visible")}blinkCaret()},500)}$(regexElement).focus();$(regexElement).trigger("updateRegexColors")}$(document).on("keydown","#exported_data .contents, #subst_result",function(e){if(deadKeycodes.indexOf(e.which)===-1&&!(e.ctrlKey||e.metaKey||e.shiftKey)){e.preventDefault()}});$(document).on("cut paste","#exported_data .contents, #subst_result",function(e){e.preventDefault()});$("#options_helper").hover(function(){var pos=$("#options_container").offset();var content=$("#content").offset();var w=$("#main_editor").width()-4-20;$("#options_helper_contents").width(w<500?w:w>800?800:w);var flags=$("#options").attr("placeholder");$("#options_helper_contents").html('<div class="label">Modifier quick reference</div>'+'<ul id="quickref_flags">'+Regex101Explainer.explain_options(flags)+"<li><em>All flags with further information can be found in the quick reference.</em></li>"+"</ul>");$("#options_helper_contents").css({left:$("#main_editor").outerWidth()-$("#options_helper_contents").outerWidth()-10,top:pos.top-content.top+$("#options_container").outerHeight()});$("#options_helper_contents").show()},function(){$("#options_helper_contents").html();$("#options_helper_contents").fadeOut(fadeOutTime)});$(document).on("focusout blur","[data-focus]",function(){$($(this).attr("data-focus")).removeClass("focus_border")});$(document).on("focusin focus","[data-focus]",function(){$($(this).attr("data-focus")).addClass("focus_border")});$(".filter_parent").on("focusout blur",function(){$(".filter_input").removeClass("focus_border")});$(".filter_parent").on("focusin focus",function(){$(".filter_input").addClass("focus_border")});function slowUpdate(bool){setTimeout(function(){updateRegex(bool)},0)}colorize("#regex","#options","#delimiter_selector");function colorize(element,options,delimiter){var id=element.replace("#",""),e,o,d;if(id!=element){e=document.getElementById(id);o=document.getElementById(options.replace("#",""));d=document.getElementById(delimiter.replace("#",""));if(typeof e!==undefined&&e!==null)createRichTextarea(e,o,d)}else{e=document.querySelectorAll(element);o=document.querySelectorAll(options);d=document.querySelectorAll(delimiter);var i=e.length;while(i--)createRichTextarea(e[i],o[i],d[i])}}function plainColorize(element){var highlights=document.querySelectorAll(element);var i=highlights.length;while(i--){var children=highlights[i].children;replaceHtml(children[1],Regex101Colorizer.colorize(children[1][textMethod],children[3][textMethod],-1,children[0][textMethod],$(highlights[i]).attr("data-flavor-id"),false))}}function communityColorize(element){var highlights=document.querySelectorAll(element);var i=highlights.length;while(i--){var children=highlights[i].children;replaceHtml(children[1],Regex101Colorizer.colorize(children[1][textMethod],children[3][textMethod],-1,children[0][textMethod],$(highlights[i]).attr("data-flavor-id"),false));var sub=$(highlights[i]).parent().find(".community_sub_box:not(.sub_null)");if(sub.length>0){sub.html(subParser(sub.text()))}}}$("#scroll_match").on("click",".export_matches",function(){$(".tipsy").remove();var rows=$("#match_info table tr");var data=[];var obj={};var plain="";rows.each(function(){var children=$(this).children();if(children.length===1){if(obj.match){data.push(obj);obj={}}obj.match=Math.floor($(children[0]).text().replace(/^MATCH /,""));obj.children=[]}else{var tmp={};var grpName=children[0][textMethod];tmp["group"]=grpName.replace(".","");if(tmp["group"]!=grpName){tmp["group"]=Math.floor(tmp["group"])}if(children.length>2){var pos=children[1][textMethod].replace(/\[|\]/g,"").split("-");tmp["start"]=Math.floor(pos[0]);tmp["end"]=Math.floor(pos[1]);tmp["value"]=children[2][textMethod].slice(1,-1)}else{tmp["value"]=children[1][textMethod].slice(1,-1)}obj.children.push(tmp);plain+=tmp["value"]+"\n"}});data.push(obj);var html='<div id="dimmer-contents">';html+='<div id="export_contents">';html+='<div id="export_format">';html+='<div class="label">Format</div>';html+="<ul>";html+='<li><a class="json active" href="#" data-id="JSON"><i class="fa fa-file-code-o"></i>json</a></li>';html+='<li><a class="csv" href="#" data-id="CSV"><i class="fa fa-list-alt"></i>csv</a></li>';html+='<li><a class="plain" href="#" data-id="plain"><i class="fa fa-file-text"></i>plain text</a></li>';html+="</ul>";html+="</div>";html+='<div id="exported_data">';html+='<div class="label">Result</div>';html+='<div contenteditable="true" class="contents monospace hard_break overflow_handler">';html+='<div class="json_data">'+escapeHtml(JSON.stringify(data,null,2))+"</div>";html+='<div class="csv_data">';html+="MATCH_NUM,GROUP,";if(getFlavor()==FLAVOR.PCRE){html+="START,END,"}html+="VALUE\n";for(var i=0,len=data.length;i<len;i++){var val=data[i];for(var j=0,len2=val.children.length;j<len2;j++){var child=val.children[j];html+=val.match+",";html+=(Math.floor(child.group)==child.group?child.group:'"'+child.group+'"')+",";if(getFlavor()==FLAVOR.PCRE){html+=child.start+",";html+=child.end+","}html+='"'+sanitizeCSV(child.value)+'"\n'}}html+="</div>";html+='<div class="plain_text">';html+=escapeHtml(plain);html+="</div>";html+="</div>";html+="</div>";html+="</div>";html+="</div>";html+='<div id="button-area" class="button-area">';html+='<div id="permalink_close" class="button">close</div>';html+="</div>";showPopup(html);function sanitizeCSV(str){return str.replace(/"/g,'""')}});$(document).on("click","#export_format a",function(){$("#export_contents a").removeClass("active");$("#exported_data .contents div").hide();$(this).addClass("active");switch($(this).attr("data-id")){case"JSON":$(".json_data").show();break;case"CSV":$(".csv_data").show();break;case"plain":$(".plain_text").show();break}updatePopupPos()});var test_counter=0;$("#regex_string").on("input",function(e){test_height_element[textMethod]=test_area.value;this.scrollLeft=1;if(!wrapNewlines()){test_height_element[textMethod]+=" "}if(test_counter<5){slowUpdate(false)}else{cancelMatching()}test_counter++});$("#regex_string").on("keydown",function(e){if(e.keyCode===9&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey&&!e.altKey){if(this.setSelectionRange){var start=this.selectionStart,end=this.selectionEnd,offset=start+1;this.value=this.value.substring(0,start)+"   "+this.value.substring(end);this.setSelectionRange(offset,offset)}else if(document.selection){var range=document.selection.createRange();range.text="   ";range.select()}e.preventDefault();slowUpdate(false)}});$("#regex_string").on("keyup",function(e){if(test_counter>4){slowUpdate(false)}test_counter=0});$("#options").on("input",function(){slowUpdate(true)});$("#sub").on("input",function(){slowUpdate(true)});$("#regex").on("paste",function(e){setTimeout(function(){var val=$("#regex").val();var flavor=getFlavor();switch(flavor){case FLAVOR.JS:var m=val.match(/^\s*\/([\s\S]+)\/([gmi]*)$/);if(m){$(".slash").text("/");$("#regex").val(m[1]);$("#options").val(m[2])}break;case FLAVOR.PCRE:var m=val.match(/^\s*([\/@~;%,])([\s\S]+)\1([xXsiuUmgADJ]*)$/);if(m){$(".slash").text(m[1]);$("#regex").val(m[2]);$("#options").val(m[3])}break}},0)});function subParser(value){var match;var newValue="";var subResult="";var captureData=Regex101Colorizer.getCaptureData();var regex;switch(getFlavor()){case FLAVOR.JS:regex=subRegex.JS;break;default:regex=subRegex.PCRE;break}while(match=regex.exec(value)){newValue+=parseSub(match[0],captureData,false)}return newValue}createBasicRichtext("#sub",[{trigger:"input updateColors",triggerFunc:function(e,inputElem,bgElem){return replaceHtml(bgElem,subParser(inputElem.value))}}]);function createBasicRichtext(element,eventList){var elem=$(element);var newId="basic_richtext_"+elem.attr("id");elem.wrap('<div class="basic_richtext box_overflow_fix regex_colorizer" id="'+newId+'"><div class="basic_richtext_scroller"></div></div>');var scroller=elem.parent();scroller.prepend('<pre class="basic_richtext_pre box_overflow_fix"><span></span>&nbsp;</pre>');var pre=scroller.find("span")[0];scroller.find("textarea, input").attr("data-focus","#"+newId);eventList.forEach(function(_event,i){elem.on(_event.trigger,function(e){var func=_event.triggerFunc;pre=func(e,elem[0],pre)})});elem.trigger("updateColors")}$("#subst_parent .expander").click(function(){if($("#subst_container").is(":visible")){$("#subst_container").hide();$("#subst_parent").removeClass("subst_enabled");$("#test_result_container").removeClass("subst_enabled")}else{$("#subst_container").show();$("#subst_parent").addClass("subst_enabled");$("#test_result_container").addClass("subst_enabled");slowUpdate(false)}});$("#quickref .expander").click(function(){var elem=$("#quickref_data");if(elem.is(":visible")){$("#quickref").addClass("flex-minimized");elem.hide()}else{$("#quickref").removeClass("flex-minimized");elem.show()}setCookieData("quickref",elem.is(":visible"))});$("#match_label").click(function(){var elem=$("#scroll_match .overflow_handler");if(elem.is(":visible")){$("#scroll_match").addClass("flex-minimized");elem.hide()}else{$("#scroll_match").removeClass("flex-minimized");elem.show()}setCookieData("match_info",elem.is(":visible"))});$("#explainer_label").click(function(){var elem=$("#scroll_treeview .overflow_handler");if(elem.is(":visible")){$("#scroll_treeview").addClass("flex-minimized");elem.hide()}else{$("#scroll_treeview").removeClass("flex-minimized");elem.show()}setCookieData("explainer",elem.is(":visible"))});$(".expander").click(function(){var span=$(this).find("span");var up="fa-plus-circle";var down="fa-minus-circle";if(span.hasClass(up)){span.removeClass(up).addClass(down);span.parent().not(".menu_item").removeClass("collapsed")}else{span.removeClass(down).addClass(up);span.parent().not(".menu_item").addClass("collapsed")}});var treeviewResize=false;$("#treeview_resizer").on("mousedown",function(e){$("body").addClass("disable_selection");treeviewResize=true;lastX=e.pageX;if($("#regex_treeview").hasClass("treeview_hidden")){$("#treeview_resizer").attr("original-title","Drag left");$("#treeview_resizer").tipsy("show")}});$(document).on("mouseup",function(){if(treeviewResize){treeviewResize=false;updateTooltipData();lastX=undefined;$("body").removeClass("disable_selection");if(!$("#regex_treeview").hasClass("treeview_hidden")){var parent=$("#regex_editor").width();var newTree=Math.round($("#regex_treeview").width()/parent*100);var newMain=100-newTree;$("#regex_treeview").css("width",newTree+"%");$("#main_editor").css("width",newMain+"%");setCookieData("show_sidebar",newTree)}else{setCookieData("show_sidebar",0)}$("#treeview_resizer").tipsy("hide")}});$(document).on("mousemove",_.throttle(function(e){if(treeviewResize){var treeW=$("#regex_treeview").width();var editorW=$("#main_editor").width();var newWidthTree=$(window).width()-e.pageX;var newWidthEditor=editorW-(newWidthTree-treeW);if(newWidthEditor>500){if(newWidthTree<minTreeviewWidth){$("#regex_treeview, #main_editor").addClass("treeview_hidden");$("#treeview_resizer").tipsy("show");var newTitle="Keep dragging: "+Math.max(0,Math.floor(newWidthTree/minTreeviewWidth*100))+"%";$("#treeview_resizer").attr("original-title",newTitle)}else{$("#regex_treeview, #main_editor").removeClass("treeview_hidden");$("#regex_treeview").width(newWidthTree);$("#main_editor").width(newWidthEditor);$("#treeview_resizer").tipsy("hide")}}}},10));$("#treeview_resizer").tipsy({gravity:"e",trigger:"manual"});$("#header_nav .header_nav").click(function(e){var event_id=$(this).attr("data-id");var isActive=$(this).hasClass("active");switch(event_id){case"40":if(!isActive){uniqueMainMenu();$(this).addClass("active");$("#main_menu, #tools_menu, .regex_menu, #regex_editor").show();$(".fullscreen_disable").addClass("disabled")}else{$("#inline_menu .menu_item.fullscreen.active").not($(this)).click()}break;case"43":if(!isActive){uniqueMainMenu();$(this).addClass("active");loadCommunity();$("#community").show();$("#filter_menu .menu_item").addClass("active")}break;case"44":if(!isActive){uniqueMainMenu();$(".account_submenu").show();$(this).addClass("active");loadAccountPage()}}});$("#inline_menu .menu_item").click(function(e){if($(this).hasClass("disabled")){return false}var event_id=$(this).attr("data-id");var isActive=$(this).hasClass("active");switch(event_id){case"20":changeFlavor($(this),FLAVOR.PCRE);break;case"21":changeFlavor($(this),FLAVOR.JS);break;case"22":changeFlavor($(this),FLAVOR.PYTHON);break;case"3":var html='<div id="dimmer-contents">';html+='<div id="permalink_data"><label for="permalink_input">Your unique link</label>';html+='<input id="permalink_input" class="box_overflow_fix" placeholder="fetching data.. please hold" maxlength="200">';html+='<i class="fa fa-arrow-down" id="perma_go_down"></i>';html+="</div>";html+="</div>";html+='<div id="button-area" class="button-area">';html+='<div id="permalink_close" class="button">close</div>';html+="</div>";showPopup(html);makePermalink();break;case"900":forkPermalink();break;case"4":var html='<div id="dimmer-contents"><label for="community_title">Title *</label>';html+='<input id="community_title" class="box_overflow_fix" placeholder="input mandatory title" maxlength="70">';html+='<label for="community_desc">Description</label>';html+='<textarea id="community_desc" cols="70" rows="5" class="box_overflow_fix" name="community_desc" placeholder="';html+="input an optional description of the pattern here";html+='"></textarea>';html+='<label for="community_author">Author</label>';html+='<input id="community_author" placeholder="optional name of the author" class="box_overflow_fix" name="community_author" maxlength="70">';html+='</div><div id="button-area" class="button-area">';html+='<div class="button disabled" id="community_send">submit</div> <div id="permalink_close" class="button">close</div>';html+="</div>";showPopup(html);$("#community_title").focus();break;case"8":if(isActive){$(this).removeClass("active");$("#code_samples").fadeOut(fadeOutTime);showEditor();enableAllElse()}else{$(this).addClass("active");hideEditor();createCodeSamples();$("#code_samples").show();disableAllElse($(this))}break;case"7":if(isActive){if(fdd)fdd.abort();if(fnd)fnd.abort();$(this).removeClass("active");$("#regex_debugger").fadeOut(fadeOutTime);showEditor();enableAllElse()}else{$(this).addClass("active");hideEditor();trigger_debugger();$("#regex_debugger").show();disableAllElse($(this))}break;case"100":case"101":case"102":if(isActive){$(this).removeClass("active")}else{$(this).addClass("active")}refreshCommunityMenu();break;case"50":$("#regex").trigger("formatRegex");break;case"300":case"301":case"310":case"311":case"312":case"301":if(isActive){$(this).removeClass("active")}else{$(this).addClass("active")}updateAccountDisplay();break;case"99":if(isActive){$(this).removeClass("active");$("#unit_tests_list, #unit_tests_builder").hide();$("#subst_parent, #test_result_container").show()}else{$(this).addClass("active");$("#subst_parent, #test_result_container").hide();buildUnitTests();$("#unit_tests_list, #unit_tests_builder").show()}break}function resetFlavors(){$(".flavor_python, .flavor_js, .flavor_pcre").removeClass("active")}function changeFlavor(obj,f){resetFlavors();obj.addClass("active");setFlavor(f);$("#regex").trigger("updateRegexColors");if($("#quickref_filter").is(":visible")){$("#quickref_filter").trigger("input")}else{$("#first_menu .active").click()}}function disableAllElse(notThis){$(".extension_menu .menu_item").each(function(){var t=$(this);if(!t.hasClass("disabled")){t.addClass("disabled");t.addClass("fullscreen_disable")}});notThis.removeClass("disabled fullscreen_disable")}function enableAllElse(){$("#inline_menu .menu_item.disabled.fullscreen_disable").each(function(){$(this).removeClass("disabled");$(this).removeClass("fullscreen_disable")})}});var setWin=$("#settings_popup_contents");$(document).on("mouseup",function(){if(setWin.is(":visible")){$("#settings_popup #settings").click();slowUpdate(false)}});$("#sign_in_out .fa-sign-in").on("click",function(){$(".tipsy").remove();var html='<div id="dimmer-contents">';html+='<div class="label">Login to regex101</div><div id="login_contents">';html+="Please select a login method below:";html+="<ul>";html+="<li><a href=\"#\" onclick=\"window.open('/google.php', '', 'width=500, height=400');\"><i class=\"fa fa-google\"></i>Google</a></li>";html+="<li><a href=\"#\" onclick=\"window.open('/github.php?action=login', '', 'width=800, height=400');\"><i class=\"fa fa-github-square\"></i>Github</a></li>";html+='</ul><span id="login_warning"><strong>Note:</strong> Logging in will reload the page! Any unsaved data will be lost.</span></div>';html+="</div>";html+='<div id="button-area" class="button-area">';html+='<div id="permalink_close" class="button">close</div>';html+="</div>";showPopup(html)});$("#sign_in_out .fa-sign-out").on("click",function(){window.location="/logout"});$("#settings_popup #settings").on("click",function(e){e.stopPropagation();$(".tipsy").remove();var active=setWin.is(":visible");if(active){setWin.fadeOut(fadeOutTime);$(this).removeClass("active")}else{$(".execution_limit input").val(maxWorkerTimeout);setWin.show();$(this).addClass("active")}});$("#settings_popup_contents").on("mouseup",function(e){e.stopPropagation()});$("#settings_popup_contents select").on("change",function(e){resetTheme(false);$("body").addClass($(this).val());setCookieData("regex_theme",getTheme()+","+$(this).val())});$("#settings_popup_contents input").on("click",function(e){var isActive=$(this).is(":checked");var event_id=$(this).attr("data-id");switch(event_id){case"1":setCookieData("display_whitespace",displayWhitespace());communityColorize("#community .community_regex_container");plainColorize("#account .account_regex");$("#regex").trigger("updateRegexColors");break;case"9":setCookieData("colorize_regex",colorizeRegex());$("#regex").trigger("updateRegexColors");communityColorize("#community .community_regex_container");plainColorize("#account .account_regex");break;case"10":toggleWrap();setCookieData("wrap_newlines",wrapNewlines());break;case"200":$("body").removeClass("light").addClass("dark");setCookieData("dark_theme",true);setDefaultTheme();break;case"203":$("body").addClass("light").removeClass("dark");setCookieData("dark_theme",false);setDefaultTheme();break;case"201":if(!isActive){$("#content").removeClass("mini_menu");$("#inline_menu").removeClass("small_menu");$("#small_header").hide();$("#large_header").show();$("#header .large_menu").show();$("#header_nav").removeClass("no_i_margin")}else{$("#content").addClass("mini_menu");$("#inline_menu").addClass("small_menu");$("#large_header").hide();$("#small_header").show();$("#header .large_menu").hide();$("#header_nav").addClass("no_i_margin")}setCookieData("small_menu",isActive);updateTooltipData();break;case"210":setCookieData("smart_complete",autoCompleteRegex());break;case"220":setCookieData("highlight_interaction",highlightInteraction());break}});$("#settings_popup_contents .select_themes a").on("click",function(e){e.preventDefault();showPopup("fool!")});$("#settings_popup_contents .execution_limit input").on("input",function(){verifyExecLimit()});function verifyExecLimit(){var elem=$("#settings_popup_contents .execution_limit input");var val=elem.val();elem.tipsy("hide");if(val===""){elem.removeClass("errorize_box");elem.attr("title","Empty = "+elem.attr("placeholder")+"ms");elem.tipsy("show")}else if(!/^\d+$/.test(val)){elem.addClass("errorize_box").attr("title","Only numeric values!");elem.tipsy("show")}else{if(parseInt(val)<500){elem.attr("title","Psst.. That isn't very long!");elem.tipsy("show")}elem.removeClass("errorize_box");if(generalTimeout)clearTimeout(generalTimeout);generalTimeout=setTimeout(function(){setCookieData("max_exec",val);maxWorkerTimeout=parseInt(val)},500)}}$("#settings_popup_contents .execution_limit input").on("focus",function(e){verifyExecLimit()});$("#settings_popup_contents .execution_limit input").on("blur",function(){$(this).tipsy("hide")});$("#settings_popup_contents .execution_limit input").tipsy({trigger:"manual",gravity:"s"});function toggleWrap(){var wrapElems=$("#subst_result, #richtext_test pre, #richtext_test, #test_result_container .overflow_handler, #richtext_regex pre, #richtext_regex, #richtext_regex_container");if(!wrapNewlines()){wrapElems.addClass("nowrap");$("#regex_string, #regex").attr("wrap",false)}else{wrapElems.removeClass("nowrap");$("#regex_string, #regex").attr("wrap",true)}}function hideEditor(){$("#regex_treeview").hide();$("#main_editor").hide()}function showEditor(){$("#regex_treeview").show();$("#main_editor").show()}function uniqueMainMenu(){$(".extension_menu").hide();$("#quiz, #regex_editor, #community, #account").hide();replaceHtml("community","");replaceHtml("regex_debugger_window","");replaceHtml("account","");$("#header_nav .header_nav").removeClass("active");$("#inline_menu .menu_item.fullscreen.active").click()}$(".dropdown-index a").on("click",function(){$(".slash").text($(this).text());$("#regex").trigger("updateRegexColors")});function trigger_debugger(){$("#debugger_label").text("Status: Fetching debug data...");$("#regex_debugger_window").html('<div class="debugger_loader_padding">Please hold while we fetch the debug data. This might take some time.</div>');fetchDebugInfo();return false}function fetchDebugInfo(){if(fdd&&fdd.state()=="pending"){fdd.abort()}var selection=grabSelection("regex_string");var flavor=getFlavor();var dataToSend={regex:$("#regex").val(),options:$("#options").val(),regexText:selection!=""?selection:$("#regex_string").val(),delimiter:$("#delimiter_selector").text(),internal_opt:$("#internal_opt").is(":checked"),js:flavor==FLAVOR.JS};if(flavor===FLAVOR.PYTHON){dataToSend.regex=sanitizePython(dataToSend.regex)}fdd=$.ajax({type:"POST",url:"/debugger/debugger.php",contentType:"application/x-www-form-urlencoded;charset=UTF-8",timeout:12e4,data:dataToSend,success:function(data){var json=JSON.parse(data);$("#debugger_hide_temp").show();$("#regex_debugger_window").html(json.output);validateRegexPos();if($("#hide_match_failures").is(":checked")){$(".debugger_title.match2").hide()}$("#debugger_label").html('Status: Done! <span class="right">Average steps taken: <strong>'+json.avg+"</strong></span>")},error:function(jqXHR,textStatus,errorThrown){if(textStatus=="abort"){return}$("#debugger_label").text("Status: ERROR. Please try again.");$("#regex_debugger_window").html('<div class="debugger_loader_padding">An error occurred. Please try again.</div>')}})}$("#debugger_collapse").click(function(){$(".debugger_data").hide();$("#regex_debugger_window .debugger_title span.fa").removeClass("fa-minus-circle").addClass("fa-plus-circle");return false});$("#show_regex_pos").click(function(){validateRegexPos()});function validateRegexPos(){if($("#show_regex_pos").is(":checked")){$(".debugger_regex_pos").show()}else{$(".debugger_regex_pos").hide()}}$("#regex_debugger").on("click",".debugger_title",function(){var match_id=$(this).attr("match_id");var elem=$("#debugger_match_"+match_id);var expander=$(this).find("span.fa");if(expander.hasClass("fa-plus-circle")){expander.removeClass("fa-plus-circle").addClass("fa-minus-circle");$(elem).html('<div class="debugger_loader_padding">Fetching new data, please hold. This might take some time.</div>');fetchNewData(0,match_id,elem);elem.show()}else{expander.removeClass("fa-minus-circle").addClass("fa-plus-circle");elem.html("");elem.hide()}});$("#internal_opt").click(function(){trigger_debugger()});$("#regex_debugger").on("click",".debugger_next, .debugger_back",function(){var page=parseInt($(this).attr("page"));if(page===-1)return false;var match_id=$(this).parent().attr("match_id");var elem="#debugger_mat


Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

New posts are disabled. Archive only, sorry.