Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
xoceunder
Roku Guru

separate string data

Jump to solution
device = devinfo.getModelDisplayName()
friendly = devinfo.getFriendlyName()

 r = CreateObject("roRegex", "(\d+)\s+(\w+)", "")
 ? r.Replace(friendly, "type:\2 id:\1")

I want to be able to separate to place independent

0 Kudos
1 Solution

Accepted Solutions
xoceunder
Roku Guru

Re: separate string data

Jump to solution

this solution

 

  r = CreateObject("roRegex", "\d+", "")
  arr = r.MatchAll("123 456 789")

View solution in original post

0 Kudos
1 REPLY 1
xoceunder
Roku Guru

Re: separate string data

Jump to solution

this solution

 

  r = CreateObject("roRegex", "\d+", "")
  arr = r.MatchAll("123 456 789")
0 Kudos