Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » HTML anchors href
  • regex wich search tags without attribute

    hello, please i want to find all tags<a> without the title attribute in a HTML file my regex is:if (preg_match_all("/<a\s[^>]*href=(\s*(\"??)([^\" >]*?)\\2[^title>]*)>(.*)<\/a>/siU",$contenu,$out, PREG_SET_ORDER))  this regex return all tags <a>without words wich contains ...
    Posted to Construction Advice (Forum) by mouna on November 28, 2008
  • Parse HTML A tag to extract attributes

    Dear all,  I need help parsing HTML A tag with attributes. The problem is that the source is not always properly formatted. I didn't find anything in RegExLib site. I need to extract URL and the text between A tags Here are the specifics:There can be single quotes, double quotes, no quotes or combination of thereof.Attributes can be in ...
    Posted to Construction Advice (Forum) by manmln on June 28, 2008