Hi, I want to parse a html string like this: ... <div align=left><a href=# class=title> title1 </a></div> ... <div align=left><a href=# class=title> title2 </a></div> ... <div align=left><a href=# class=title> title3 </a></div> ... <div align=left><a href=# class=title> title4 </a></div> ... "..." 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/.