Text contains html tag

Inputs

  • text

Outputs

  • 1/0

Neuron type

Best algorithm has been found - locked

Patterns

Pattern Input Output
1.
text: 5 > 4
1/0: 0
2.
text: 0 < 6
1/0: 0
3.
text: any text
1/0: 0
4.
text: <div>text</div>
1/0: 1
5.
text: <br />
1/0: 1
6.
text: <hr>
1/0: 1
7.
text: 3 > 1 < 4
1/0: 0
8.
text: < a, b, c
1/0: 0
9.
text: a>
1/0: 0

Applicable neurons

  • Connect - two inputs
  • Connect - three inputs
  • character <
  • character >
  • RegExp.test
  • (x)
  • (x)(y)
  • character ^
  • [x]
  • [^x]
  • empty string
  • character g
  • .
  • n*
  • n+
  • Cube - surface area
  • NAND
  • Get first letter
  • character {
  • word capital

Algorithm

Test

Code made by AI:
/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * 6: 
 *
 * @return {Array}
 */
function neuron506()
{
return [6];
}

/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * Ascii code into character: 
 *
 * @param x1 ascii code
 * @return {Array}
 */
function neuron585(x1)
{
return [String.fromCharCode(x1)];
}

/**
 * character <: 
 * 
 * @return {Array}
 */
function neuron606()
{
  var outputs = [];

  arr = neuron500();
  outputs[0] = arr[0];

  arr = neuron506();
  outputs[1] = arr[0];

  arr = neuron520(outputs[1], outputs[0]);
  outputs[2] = arr[0];

  arr = neuron585(outputs[2]);
  outputs[3] = arr[0];

  return[outputs[3]];
}


/**
 * 2: 
 *
 * @return {Array}
 */
function neuron502()
{
return [2];
}

/**
 * 6: 
 *
 * @return {Array}
 */
function neuron506()
{
return [6];
}

/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * Ascii code into character: 
 *
 * @param x1 ascii code
 * @return {Array}
 */
function neuron585(x1)
{
return [String.fromCharCode(x1)];
}

/**
 * character >: 
 * 
 * @return {Array}
 */
function neuron607()
{
  var outputs = [];

  arr = neuron502();
  outputs[0] = arr[0];

  arr = neuron506();
  outputs[1] = arr[0];

  arr = neuron520(outputs[1], outputs[0]);
  outputs[2] = arr[0];

  arr = neuron585(outputs[2]);
  outputs[3] = arr[0];

  return[outputs[3]];
}


/**
 * 3: 
 *
 * @return {Array}
 */
function neuron503()
{
return [3];
}

/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * 1: 
 *
 * @return {Array}
 */
function neuron501()
{
return [1];
}

/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * Connect - three inputs: Connect stringA + stringB + stringC
 * 
 * @param x1 string A
 * @param x2 string B
 * @param x3 string C
 * @return {Array}
 */
function neuron564(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron520(outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron520(outputs[0], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * Ascii code into character: 
 *
 * @param x1 ascii code
 * @return {Array}
 */
function neuron585(x1)
{
return [String.fromCharCode(x1)];
}

/**
 * 3 digits of ascii code into character: connect 3 digits to one ascii number and change it to character
 * 
 * @param x1 1. digit
 * @param x2 2. digit
 * @param x3 3. digit
 * @return {Array}
 */
function neuron638(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron564(outputs[0], outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron585(outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * character g: 
 * 
 * @return {Array}
 */
function neuron788()
{
  var outputs = [];

  arr = neuron503();
  outputs[0] = arr[0];

  arr = neuron500();
  outputs[1] = arr[0];

  arr = neuron501();
  outputs[2] = arr[0];

  arr = neuron638(outputs[2], outputs[1], outputs[0]);
  outputs[3] = arr[0];

  return[outputs[3]];
}


/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * Connect - three inputs: Connect stringA + stringB + stringC
 * 
 * @param x1 string A
 * @param x2 string B
 * @param x3 string C
 * @return {Array}
 */
function neuron564(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron520(outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron520(outputs[0], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * 4: 
 *
 * @return {Array}
 */
function neuron504()
{
return [4];
}

/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * 9: 
 *
 * @return {Array}
 */
function neuron509()
{
return [9];
}

/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * Connect - three inputs: Connect stringA + stringB + stringC
 * 
 * @param x1 string A
 * @param x2 string B
 * @param x3 string C
 * @return {Array}
 */
function neuron564(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron520(outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron520(outputs[0], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * Ascii code into character: 
 *
 * @param x1 ascii code
 * @return {Array}
 */
function neuron585(x1)
{
return [String.fromCharCode(x1)];
}

/**
 * 3 digits of ascii code into character: connect 3 digits to one ascii number and change it to character
 * 
 * @param x1 1. digit
 * @param x2 2. digit
 * @param x3 3. digit
 * @return {Array}
 */
function neuron638(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron564(outputs[0], outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron585(outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * character ^: 
 * 
 * @return {Array}
 */
function neuron762()
{
  var outputs = [];

  arr = neuron504();
  outputs[0] = arr[0];

  arr = neuron500();
  outputs[1] = arr[0];

  arr = neuron509();
  outputs[2] = arr[0];

  arr = neuron638(outputs[1], outputs[2], outputs[0]);
  outputs[3] = arr[0];

  return[outputs[3]];
}


/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * 1: 
 *
 * @return {Array}
 */
function neuron501()
{
return [1];
}

/**
 * 9: 
 *
 * @return {Array}
 */
function neuron509()
{
return [9];
}

/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * Connect - three inputs: Connect stringA + stringB + stringC
 * 
 * @param x1 string A
 * @param x2 string B
 * @param x3 string C
 * @return {Array}
 */
function neuron564(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron520(outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron520(outputs[0], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * Ascii code into character: 
 *
 * @param x1 ascii code
 * @return {Array}
 */
function neuron585(x1)
{
return [String.fromCharCode(x1)];
}

/**
 * 3 digits of ascii code into character: connect 3 digits to one ascii number and change it to character
 * 
 * @param x1 1. digit
 * @param x2 2. digit
 * @param x3 3. digit
 * @return {Array}
 */
function neuron638(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron564(outputs[0], outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron585(outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * character [: 
 * 
 * @return {Array}
 */
function neuron693()
{
  var outputs = [];

  arr = neuron501();
  outputs[0] = arr[0];

  arr = neuron509();
  outputs[1] = arr[0];

  arr = neuron500();
  outputs[2] = arr[0];

  arr = neuron638(outputs[2], outputs[1], outputs[0]);
  outputs[3] = arr[0];

  return[outputs[3]];
}


/**
 * 3: 
 *
 * @return {Array}
 */
function neuron503()
{
return [3];
}

/**
 * 9: 
 *
 * @return {Array}
 */
function neuron509()
{
return [9];
}

/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * Connect - three inputs: Connect stringA + stringB + stringC
 * 
 * @param x1 string A
 * @param x2 string B
 * @param x3 string C
 * @return {Array}
 */
function neuron564(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron520(outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron520(outputs[0], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * Ascii code into character: 
 *
 * @param x1 ascii code
 * @return {Array}
 */
function neuron585(x1)
{
return [String.fromCharCode(x1)];
}

/**
 * 3 digits of ascii code into character: connect 3 digits to one ascii number and change it to character
 * 
 * @param x1 1. digit
 * @param x2 2. digit
 * @param x3 3. digit
 * @return {Array}
 */
function neuron638(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron564(outputs[0], outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron585(outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * character ]: 
 * 
 * @return {Array}
 */
function neuron694()
{
  var outputs = [];

  arr = neuron503();
  outputs[0] = arr[0];

  arr = neuron509();
  outputs[1] = arr[0];

  arr = neuron500();
  outputs[2] = arr[0];

  arr = neuron638(outputs[2], outputs[1], outputs[0]);
  outputs[3] = arr[0];

  return[outputs[3]];
}


/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * Connect - three inputs: Connect stringA + stringB + stringC
 * 
 * @param x1 string A
 * @param x2 string B
 * @param x3 string C
 * @return {Array}
 */
function neuron564(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron520(outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron520(outputs[0], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * [x]: Find ´x´ character between the brackets
 * 
 * @param x1 x
 * @return {Array}
 */
function neuron766(x1)
{
  var outputs = [];
  outputs[0] = x1;

  arr = neuron693();
  outputs[1] = arr[0];

  arr = neuron694();
  outputs[2] = arr[0];

  arr = neuron564(outputs[1], outputs[0], outputs[2]);
  outputs[3] = arr[0];

  return[outputs[3]];
}


/**
 * [^x]: Find any character NOT between the brackets
 * 
 * @param x1 x
 * @return {Array}
 */
function neuron773(x1)
{
  var outputs = [];
  outputs[0] = x1;

  arr = neuron762();
  outputs[1] = arr[0];

  arr = neuron520(outputs[1], outputs[0]);
  outputs[2] = arr[0];

  arr = neuron766(outputs[2]);
  outputs[3] = arr[0];

  return[outputs[3]];
}


/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * 1: 
 *
 * @return {Array}
 */
function neuron501()
{
return [1];
}

/**
 * 4: 
 *
 * @return {Array}
 */
function neuron504()
{
return [4];
}

/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * Connect - three inputs: Connect stringA + stringB + stringC
 * 
 * @param x1 string A
 * @param x2 string B
 * @param x3 string C
 * @return {Array}
 */
function neuron564(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron520(outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron520(outputs[0], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * Ascii code into character: 
 *
 * @param x1 ascii code
 * @return {Array}
 */
function neuron585(x1)
{
return [String.fromCharCode(x1)];
}

/**
 * 3 digits of ascii code into character: connect 3 digits to one ascii number and change it to character
 * 
 * @param x1 1. digit
 * @param x2 2. digit
 * @param x3 3. digit
 * @return {Array}
 */
function neuron638(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron564(outputs[0], outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron585(outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * character ): 
 * 
 * @return {Array}
 */
function neuron687()
{
  var outputs = [];

  arr = neuron500();
  outputs[0] = arr[0];

  arr = neuron501();
  outputs[1] = arr[0];

  arr = neuron504();
  outputs[2] = arr[0];

  arr = neuron638(outputs[0], outputs[2], outputs[1]);
  outputs[3] = arr[0];

  return[outputs[3]];
}


/**
 * 4: 
 *
 * @return {Array}
 */
function neuron504()
{
return [4];
}

/**
 * 0: 
 *
 * @return {Array}
 */
function neuron500()
{
return [0];
}

/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * Connect - three inputs: Connect stringA + stringB + stringC
 * 
 * @param x1 string A
 * @param x2 string B
 * @param x3 string C
 * @return {Array}
 */
function neuron564(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron520(outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron520(outputs[0], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * Ascii code into character: 
 *
 * @param x1 ascii code
 * @return {Array}
 */
function neuron585(x1)
{
return [String.fromCharCode(x1)];
}

/**
 * 3 digits of ascii code into character: connect 3 digits to one ascii number and change it to character
 * 
 * @param x1 1. digit
 * @param x2 2. digit
 * @param x3 3. digit
 * @return {Array}
 */
function neuron638(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron564(outputs[0], outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron585(outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * character (: 
 * 
 * @return {Array}
 */
function neuron686()
{
  var outputs = [];

  arr = neuron504();
  outputs[0] = arr[0];

  arr = neuron500();
  outputs[1] = arr[0];

  arr = neuron638(outputs[1], outputs[0], outputs[1]);
  outputs[2] = arr[0];

  return[outputs[2]];
}


/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * Connect - three inputs: Connect stringA + stringB + stringC
 * 
 * @param x1 string A
 * @param x2 string B
 * @param x3 string C
 * @return {Array}
 */
function neuron564(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron520(outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron520(outputs[0], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * (x): 
 * 
 * @param x1 x
 * @return {Array}
 */
function neuron760(x1)
{
  var outputs = [];
  outputs[0] = x1;

  arr = neuron687();
  outputs[1] = arr[0];

  arr = neuron686();
  outputs[2] = arr[0];

  arr = neuron564(outputs[2], outputs[0], outputs[1]);
  outputs[3] = arr[0];

  return[outputs[3]];
}


/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * (x)(y): 
 * 
 * @param x1 x
 * @param x2 y
 * @return {Array}
 */
function neuron761(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

  arr = neuron760(outputs[0]);
  outputs[2] = arr[0];

  arr = neuron760(outputs[1]);
  outputs[3] = arr[0];

  arr = neuron520(outputs[2], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


/**
 * RegExp.test: Tests for a match in a string of the regular expression. Returns 1/0.
 *
 * @param x1 pattern
 * @param x2 flags
 * @param x3 string
 * @return {Array}
 */
function neuron751(x1, x2, x3)
{
var pattern = x1; var flags = x2; var string = x3; var r = new RegExp(pattern, flags); return (r.test(string)) ? [1] : [0];
}

/**
 * Text contains html tag: 
 * 
 * @param x1 text
 * @return {Array}
 */
function neuron799(x1)
{
  var outputs = [];
  outputs[0] = x1;

  arr = neuron606();
  outputs[1] = arr[0];

  arr = neuron607();
  outputs[2] = arr[0];

  arr = neuron788();
  outputs[3] = arr[0];

  arr = neuron564(outputs[0], outputs[0], outputs[2]);
  outputs[4] = arr[0];

  arr = neuron773(outputs[2]);
  outputs[5] = arr[0];

  arr = neuron761(outputs[2], outputs[1]);
  outputs[6] = arr[0];

  arr = neuron773(outputs[1]);
  outputs[7] = arr[0];

  arr = neuron751(outputs[6], outputs[3], outputs[4]);
  outputs[8] = arr[0];

  return[outputs[8]];
}


Code made by AI:

Create your family tree for free