From: Tomas Fischer Date: 2006-05-04T08:12:48+09:00 Subject: html stringScanner regexp Hi, I want to parse a html string like this: ...
title1
...
title2
...
title3
...
title4
... "..." means other stuff. I need to extract title1 to title4, so I tried ScannerScan.scan(/.*class=title>(.*)<\/a><\/div>_NEWLINE_/) But I get only the last title -- title4. Why? Is the regex wrong, or do I miss the point with the scan method? Best regards Tomas -- Posted via http://www.ruby-forum.com/.