daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top