Arun Kumar wrote: > I'm using the following regexp to capture a particular string from a > japanese website content. > > /<ul id="ownerProfile" class="owner">.*?<li>([^<]*?)<\/li>/m Parsing HTML with Regexp makes certain baby dieties cry. Use Nokogiri, with an XPath of '/ul[ @id = "ownerProfile" and @class = "owner" ]'. Then pull out the .text and you are done! -- Phlip