Comma-Text Get String Index

Retrieves the index of a given string in a comma-text.

Settings

comma text in

Input comma-text flow(s).

in

Input string(s).

string to search

String to search in the comma-text.

use regular expression

When ON, the string to search is interpreted as a regular expression.

  • .at matches any three-character string ending with "at", including "hat", "cat", "bat", "4at", "#at" and " at" (starting with a space).
  • [hc]at matches "hat" and "cat".
  • [^b]at matches all strings matched by .at except "bat".
  • [^hc]at matches all strings matched by .at other than "hat" and "cat".
  • ^[hc]at matches "hat" and "cat", but only at the beginning of the string or line.
  • [hc]at$ matches "hat" and "cat", but only at the end of the string or line.
  • [.] matches any single character surrounded by "[" and "]" since the brackets are escaped, for example: "[a]", "[b]", "[7]", "[@]", "[]]", and "[ ]" (bracket space bracket).
  • s.* matches s followed by zero or more characters, for example: "s", "saw", "seed", "s3w96.7", and "s6#h%(>>>m n mQ".
  • [hc]?at matches "at", "hat", and "cat".
  • [hc]*at matches "at", "hat", "cat", "hhat", "chat", "hcat", "cchchat", and so on.
  • [hc]+at matches "hat", "cat", "hhat", "chat", "hcat", "cchchat", and so on, but not "at".
  • cat|dog matches "cat" or "dog".
  • \\ to search the \ char (backslash)

exact string

When ON the module will search for the exact string in the comma-text.

This option has effect only if use-regular-expression is OFF.

index

Index of the string in the comma-text. Can return an array of positions if the sub-string appears in several comma-text elements.

Returns -1 if the string is not found.

See also

version 6.0.240115

Edit All Pages