Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
xoceunder
Level 9

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
Level 9

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
xoceunder
Level 9

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