7stud2
(7stud --)
1
I was trying to get some matches: as below
"191760250", "This is a test", "2013-04-07T17:19:06.953", "131466368",
"191760250", "Does it wotk", "2013-04-07T17:19:17.303", "131466368"
accordingly made http://rubular.com/r/EiV1uFySaN
but not working.
please help me.
···
--
Posted via http://www.ruby-forum.com/.
It's best to parse xml with an xml parser. The try Nokogiri:
http://rubygems.org/gems/nokogiri
-Josh
···
On Mon, Apr 8, 2013 at 4:44 PM, Love U Ruby <lists@ruby-forum.com> wrote:
I was trying to get some matches: as below
"191760250", "This is a test", "2013-04-07T17:19:06.953", "131466368",
"191760250", "Does it wotk", "2013-04-07T17:19:17.303", "131466368"
accordingly made Rubular: (>([\w\s]|[\d\-\:.])+<)
but not working.
please help me.
--
Posted via http://www.ruby-forum.com/\.
I would try this modified expression:
···
(([\w\s]|[\d\-\:.])+?)<
Sent from my iPhone
On Apr 8, 2013, at 2:48 PM, Josh Cheek <josh.cheek@gmail.com> wrote:
It's best to parse xml with an xml parser. The try Nokogiri: nokogiri | RubyGems.org | your community gem host
-Josh
On Mon, Apr 8, 2013 at 4:44 PM, Love U Ruby <lists@ruby-forum.com> wrote:
I was trying to get some matches: as below
"191760250", "This is a test", "2013-04-07T17:19:06.953", "131466368",
"191760250", "Does it wotk", "2013-04-07T17:19:17.303", "131466368"
accordingly made Rubular: (>([\w\s]|[\d\-\:.])+<)
but not working.
please help me.
--
Posted via http://www.ruby-forum.com/\.
What XML? This looks more like a case for CSV.
Cheers
robert
···
On Mon, Apr 8, 2013 at 11:48 PM, Josh Cheek <josh.cheek@gmail.com> wrote:
It's best to parse xml with an xml parser. The try Nokogiri:
nokogiri | RubyGems.org | your community gem host
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/
If you check the rubular link the OP posted, the sample string is an XML.
Jesus.
···
On Tue, Apr 9, 2013 at 9:35 AM, Robert Klemme <shortcutter@googlemail.com> wrote:
On Mon, Apr 8, 2013 at 11:48 PM, Josh Cheek <josh.cheek@gmail.com> wrote:
It's best to parse xml with an xml parser. The try Nokogiri:
http://rubygems.org/gems/nokogiri
What XML? This looks more like a case for CSV.