Using Nokogiri and Ruby.
I have a page to parse with div id's like:
div id="some-list-number^875"
Numbers after ...-number^ changes random, and i just can't do
doc.css('#wikid-list-genres^875').each do |n|
puts n.text.to_s
end
But the base structure is always the same -number^..some digits...
So i need some kind of wildmask for those digits.
How can I deal with that using ruby and Nokogiri?
Thanks!