Characters Between (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.8.0

Syntax

[(all [[of] the]|the)] [alphanumeric] characters (between|from) %string% (and|to) %string%

Description

All characters between two given characters, useful for generating random strings. This expression uses the Unicode numerical code of a character to determine which characters are between the two given characters. The <a href="https://www.asciitable.com/">ASCII table linked here</a> shows this ordering for the first 256 characters. If you would like only alphanumeric characters you can use the 'alphanumeric' option in the expression. If strings of more than one character are given, only the first character of each is used.

Examples

loop characters from "a" to "f":
	broadcast "%loop-value%"
# 0123456789:;<=>?@ABC... ...uvwxyz
send characters between "0" and "z"
# 0123456789ABC... ...uvwxyz
send alphanumeric characters between "0" and "z"

View source