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

Browse by Tags

All Tags » HREF
  • alter href matching expression to exclude links starting with "javascript"

    I'm not sure exactly what this expression is doing (I can't parse regex), but I'd guess it's basically matching an href link: /<a (.*?)href=[\'\"](.*?)\/\/([^\'\"]+?)[\'\"](.*?)>(.*?)<\/a>/i I'd like to modify it so that it excludes any href link that starts with ...
    Posted to Construction Advice (Forum) by SimonDorfman on March 17, 2009
  • PHP: preg_match_all on Anchor Tags with href, Title and InnerHTML

    In PHP using preg_match_all; I need to extract all anchor tags with array with href, title and innerHTML. <a href="http://mydomain.com/" title="My Title">My InnerHTML</a> <a href="http://mydomain.com/">My InnerHTML</a> <a href="http://mydomain.com/" title="My ...
    Posted to Construction Advice (Forum) by jflesher on November 17, 2008
  • Help with regexp for getting anchor tags attributes

    Hi all, it is two days that I'm trying to solve my problem with regexp but I have very little experience, so I hope someone can help me. I program with classic ASP and I need to parse an HTML file and extract the attributes HREF and TITLE from all the anchor tags. The problem is that anchor can be different with attributes in a ...
    Posted to Construction Advice (Forum) by speech on July 29, 2008
  • parsin html by using regex in c#

    <meta name="keywords" content="IBM 7976KAG SYSTEM X3400 QC 1.60GHZ 2GB 3X73,sunucular, server, markalı sunucular, markalı server, hp sunucular, hp, ibm, ibm sunucular, ibm server, century server, century sunucular"> <meta name="description" content="Fiyat:1879$+KDV | Kdv Dahil:2.877,95YTL | Havale ile %3 ...
    Posted to Construction Advice (Forum) by caglar26 on April 27, 2008
  • Remove string from part of href tag

    I need some help to remove /pages/ from the href, if the href=" starts with / Test links: <a href="Lounge.htm">internal link</a> <a href="/PressReleases/Pages/default.aspx">internal link</a> <a href="/PressReleases/Test/Pages/default.aspx">internal link</a> <a ...
    Posted to Construction Advice (Forum) by BoK on February 4, 2008
  • Wrap URL's with HREF Tags (Search/Replace)

    Hello. I am have an application in Ruby on Rails. I need help with the following regular expression to find URL's contained anywhere in posted text and wrap them with <a href="URL">link</a> parameters so that they link in HTML. Two examples are below: Check out http://www.xyz.com  =>  Check out <a ...
    Posted to Construction Advice (Forum) by Teddy on July 31, 2007