# Hpricot - malformed HTML question

**URL:** <https://www.ruby-forum.com/t/hpricot-malformed-html-question/152447>\
**Category:** Rails\
**Created:** [November 4, 2008, 1:37am UTC](https://www.ruby-forum.com/t/hpricot-malformed-html-question/152447 "2008-11-04T01:37:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cswebgrl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/edb3f5/32.png) [@cswebgrl](https://www.ruby-forum.com/u/cswebgrl)\
**Post date:** [November 4, 2008, 1:37am UTC](https://www.ruby-forum.com/t/hpricot-malformed-html-question/152447/1 "2008-11-04T01:37:09Z")

</div>

Hi.

I have some html links that are poorly formed. Note the capital “A”.

link here

This code will find all of the correctly formed links with the lower  
case “a”.

search\_result.search("//a[@href\*=’/link\_here/’]") do |link|

How can I get the links that are designated with a capital “A”?

Thanks!
