top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

Beginner

13

Split and obtain string separated by "#"

RANK

SNS SHARE

AZSTOKe_sample_split

def Msg(parm):

    RPR_ShowConsoleMsg(str(parm) + "\n")


s = "1,2,3,4,5,6#1,1,1,0,1,1#3,4,5,4,5,65,4,6"


a = s.split("#")

Msg(a[0])

Msg(a[1])

Msg(a[2])


b = a[0].split(",")

Msg(b)

c = a[1].split(",")

Msg(c)

d = a[2].split(",")

Msg(d)

def Msg(parm):

    RPR_ShowConsoleMsg(str(parm) + "\n")


  • A function that outputs the input value to the Reaper console



s = "1,2,3,4,5,6#1,1,1,0,1,1#3,4,5,4,5,65,4,6"


  • Register "#" and "," as delimiters in the string


a = s.split("#")

Msg(a[0])

Msg(a[1])

Msg(a[2])


  • Split into arrays using “#” as delimiter


b = a[0].split(",")

Msg(b)

c = a[1].split(",")

Msg(c)

d = a[2].split(",")

Msg(d)


  • Split into arrays using “,” as delimiter

APIの利用にはBRONZEに

加入し専用APIを

ダウンロード

する必要があります。

No preparation required


- Script Code -
- Script Image -
- Warm Up -
- Script Detail -
- API -

PYTHON

​ReaScript File Download 👇

​※実行するには専用APIが必要です

- Script Image -
bottom of page