Get after substring

Inputs

  • MyString
  • Substring

Outputs

  • behind substring

Neuron type

Best algorithm has been found - locked

Patterns

Pattern Input Output
1.
MyString: abcd
Substring: b
behind substring: cd
2.
MyString: ==3123
Substring: ==
behind substring: 3123
3.
MyString: abbbcd
Substring: c
behind substring: d
4.
MyString: he is:index
Substring: is:
behind substring: index

Applicable neurons

  • Position
  • Length of string
  • Substring (from position to end)
  • x - 1
  • x + 1
  • Volume Of a Cone
  • character >
  • name into end tag
  • Midpoint (3d)
  • Get first word
  • Rounding to whole ten thousands of something
  • constant x.xx
  • Check if a string ends with a specified string

Algorithm

Test

Code made by AI:
/**
 * Length of string: 
 *
 * @param x1 String
 * @return {Array}
 */
function neuron528(x1)
{
return[x1.toString().length];
}

/**
 * Length of string: 
 *
 * @param x1 String
 * @return {Array}
 */
function neuron528(x1)
{
return[x1.toString().length];
}

/**
 * Substring (startPosition, endPosition): Get substring from string - from position - to pos
 *
 * @param x1 MyString
 * @param x2 start position
 * @param x3 end position
 * @return {Array}
 */
function neuron525(x1, x2, x3)
{
return[x1.toString().substring(x2, x3)];
}

/**
 * Substring (from position to end): 
 * 
 * @param x1 MyString
 * @param x2 start position
 * @return {Array}
 */
function neuron529(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

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

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

  return[outputs[3]];
}


/**
 * Position: Search position substring of string
 *
 * @param x1 MyString
 * @param x2 FindMe
 * @return {Array}
 */
function neuron523(x1, x2)
{
return [x1.toString().indexOf(x2.toString())];
}

/**
 * Get after substring: 
 * 
 * @param x1 MyString
 * @param x2 Substring
 * @return {Array}
 */
function neuron531(x1, x2)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;

  arr = neuron528(outputs[1]);
  outputs[2] = arr[0];

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

  arr = neuron523(outputs[0], outputs[1]);
  outputs[4] = arr[0];

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

  return[outputs[5]];
}


Code made by AI:

Rodokmen - poznejte své předky | TOPlist U.I., Umělá inteligence