substring

メソッド Type method
文字列.substring(開始位置,終了位置) Format string. Substring (start position, end position)
Commentary
文字列を指定した範囲から抜き出します。抜KI出SHIMASU string from the specified range. 開始位置は最初の文字列の左側が0番目、次が1番目、以後1ずつ増えていきます。 Start position is left of the first string is 0 second, followed by a second, and after an increase.
サンプルコード Sample code
str = "ABCDEFG"; str = "ABCDEFG";
outputs[0] = str.substring(2,5); outputs [0] = str.substring (2,5);