Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3881

how to get variable text from browser

From Joe Pizzanley <pizzazjoe@yahoo.com>
Newsgroups comp.lang.ruby
Subject how to get variable text from browser
Date 2011-05-03 12:14 -0500
Organization Service de news de lacave.net
Message-ID <2c12d0a1cc624f5eefefe34ad6a18613@ruby-forum.com> (permalink)

Show all headers | View raw


The browser page I'm working with has a semi-variable text group: "Files
(12)"

I want to turn that into a variable in my Ruby script: myfiles = "Files
(12)"

I surprised myself and figured out the regex to account for the changing
count: Files \(\d{0,999}\) but how do I grab it off of the browser
page?

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextNext in thread | Find similar | Unroll thread


Thread

how to get variable text from browser Joe Pizzanley <pizzazjoe@yahoo.com> - 2011-05-03 12:14 -0500
  Re: how to get variable text from browser Jesús Gabriel y Galán <jgabrielygalan@gmail.com> - 2011-05-03 12:24 -0500
    Re: how to get variable text from browser Joe Pizzanley <pizzazjoe@yahoo.com> - 2011-05-03 12:36 -0500
      Re: how to get variable text from browser Jesús Gabriel y Galán <jgabrielygalan@gmail.com> - 2011-05-03 12:48 -0500
        Re: how to get variable text from browser Joe Pizzanley <pizzazjoe@yahoo.com> - 2011-05-03 12:58 -0500
          Re: how to get variable text from browser Jesús Gabriel y Galán <jgabrielygalan@gmail.com> - 2011-05-04 02:03 -0500

csiph-web