From: Gavin Kistner Date: 2006-10-25T03:50:44+09:00 Subject: Re: parsing HTML code with regex From: Gavin Kistner > From: Anthony Walsh > > Sent: Tuesday, October 24, 2006 12:35 PM > > I'm trying to count and print each and . > > Do you just want to match the "", or do you want to match the > "..."? > > Assuming the former: > row_tags = op_file.scan( /]+>/ ) > p row_tags, row_tags.length Er, oops. I mean /]*>/ of course, to match the no-attribute row as well.