result of xmpfilter
doc.search('.noimage p:nth-child(5)') do |kaipan|
x = kaipan.to_s
x.scan(/[\w\d_-]+@[\w\d_-]+\.[\w\d._-]+/) #=> # !> character class has duplicated range: /[\w\d_-]+@[\w\d_-]+\.[\w\d._-]+/
end
If I don't use {do~end},It's just how I expected it.Like the following.
[9] pry(main)> doc.search('.noimage p:nth-child(5)').to_s.scan(/[\w\d_-]+@[\w\d_-]+\.[\w\d._-]+/)
=> ["xxxxxx@live.jp"]
Posting here made me realize again that I suck at English...lol I'm Japanese. This is my first post of Stackoverflow.