From: Simon Strandgaard Date: 2006-12-19T17:16:45+09:00 Subject: Re: Hpricot and Regular expression On 12/19/06, Sylvain Tenier wrote: [snip] > #keep only those who have the correct value for attribute as set by the regexp > result << chaque.at("//strong").inner_html if chaque.get_attribute("href") =~ > /f=13?/ > end [snip] for matching f=integer.. then use this regexp /\bf=\d+\b/ -- Simon Strandgaard