Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- doc.css('div').each {|k|
- if k['id'] =~ /^\d+/
- ...
- end
- }
- #is it possible to put the regex immediately into the css search?
- # no need for it to check every div ... i suppose i could break after
- # the if statement, but first way would be better
Add Comment
Please, Sign In to add comment