Search on text

I have a text

........ site.imageList = { images: [['http://site/1.jpg', 'http://site/2.jpg', 'http://site/3.jpg']] }; ..............

I get this text through

Nokogiri::HTML(open(@url))

Full text of this full page of the website is only part of which I need
to get just that I need the values

how I can get an array links ?

=> [http://site/1.jpg’, ‘http://site/2.jpg’, 'http://site/3.jpg]

On Sat, Aug 7, 2010 at 9:22 AM, Unc88 Unc88 [email protected] wrote:

I get this text through

Are you saying the page you are parsing returns code (like a pastebin or
a
gist) and you wish to parse the code?

Josh C. wrote:

On Sat, Aug 7, 2010 at 9:22 AM, Unc88 Unc88 [email protected] wrote:

I get this text through

Are you saying the page you are parsing returns code (like a pastebin or
a
gist) and you wish to parse the code?

This java script code, which includes links to those pictures that I
want to download from their site.

I need only draw from this piece of code references

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs