Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
matrixebiz
Level 7

Re: function to extract text from a pile of returned text

not needed
0 Kudos
matrixebiz
Level 7

Re: function to extract text from a pile of returned text

not needed
0 Kudos
matrixebiz
Level 7

Re: function to extract text from a pile of returned text

not needed
0 Kudos
belltown
Level 7

Re: function to extract text from a pile of returned text

The last regex I gave you will only return digits. If you're getting a quote character at the end, then you didn't cut and paste correctly.Double-check it's exactly what I suggested. If it still doesn't work then paste the exact code you're using and an exact data string you're passing that isn't working.
https://github.com/belltown/
0 Kudos
belltown
Level 7

Re: function to extract text from a pile of returned text

"matrixebiz" wrote:

I can't find good documentation on what all the "*,(.*)", "s")" does

You won't find any Roku-specific documentation regarding the syntax of regular expressions, as they are not a Roku-specific feature. Regular expressions are implemented in many languages on many platforms. The different implementations have much in common, so any resource on learning regular expressions in general can be helpful, as long as you are aware that Roku implements Perl-compatible regular expressions (PCRE).

They are, however, an advanced programming feature, albeit an extremely useful one, and as such the learning curve can be quite steep.

If you really want to learn regular expressions, you could:

read the documentation: https://www.amazon.com/Mastering-Regular-Expressions-Jeffrey-Friedl/dp/0596528124

take on online course: https://www.google.com/#q=how+to+learn+regular+expressions
https://github.com/belltown/
0 Kudos
matrixebiz
Level 7

Re: function to extract text from a pile of returned text

Corrected
0 Kudos
belltown
Level 7

Re: function to extract text from a pile of returned text

Like I said, you didn't cut and paste the last suggestion I gave you. Try again. Post #9.
https://github.com/belltown/
0 Kudos
matrixebiz
Level 7

Re: function to extract text from a pile of returned text

not needed
0 Kudos
belltown
Level 7

Re: function to extract text from a pile of returned text

I give up. You'll have to figure this out on your own.

You've posted neither the exact data string that you're trying to parse, nor the exact code you're using based on my last suggestion. If you can't follow simple instructions then no amount of help from others will do you any good.
https://github.com/belltown/
0 Kudos
Highlighted
matrixebiz
Level 7

Re: function to extract text from a pile of returned text

"belltown" wrote:
I give up. You'll have to figure this out on your own.

You've posted neither the exact data string that you're trying to parse, nor the exact code you're using based on my last suggestion. If you can't follow simple instructions then no amount of help from others will do you any good.

Ok, thanks anyway, the data string I sent you in a PM and the code in your last suggestion returned a 0 so maybe I'm just not understanding what you need. Sorry about that. i'll just be up all night again trying to get rid of that " Smiley Sad Oh, well at least you got me in the right direction.
0 Kudos