Guest User

Untitled

a guest
Jul 11th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. doc.css('div').each {|k|
  2. if k['id'] =~ /^\d+/
  3. ...
  4. end
  5. }
  6.  
  7. #is it possible to put the regex immediately into the css search?
  8. # no need for it to check every div ... i suppose i could break after
  9. # the if statement, but first way would be better
Add Comment
Please, Sign In to add comment