From: Gavin Kistner Date: 2006-10-25T03:48:06+09:00 Subject: Re: parsing HTML code with regex 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 > > I haven't even gotten to counting my matches. I'm still working on > matching with or > > I've done: > > op_file = HTML_CODE > if op_file =~ /()+/ > > but it catches everything on from the first the line. > Any ideas? > > -Shinkaku > > -- > Posted via http://www.ruby-forum.com/. > >