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

Browse by Tags

All Tags » regexp » tags
  • fetching attributes

    Hello, I'm looking for a pattern that extracts the attributes inside an html element string I came up with the following: /<font\s[^>]*face="(.*?)" size="(.*?)" color="(.*?)"[^>]*>(.*?)<\/font>/si  but what if not all 3 attributes face, font and size are required? is it possible to ...
    Posted to Construction Advice (Forum) by iCon on July 11, 2010
  • <font> to <span>

    I want to change a font element to an XHTML compatible variant. e.g. find <font face="arial" size="1" color="red" >hello world</font> replace <span style='font-family: arial; font-size: 1; color: red;'>hello world</span>   note: - the font attributes can change order - ...
    Posted to Construction Advice (Forum) by iCon on July 8, 2010
  • VBScript RexExp Replace a textstring only if not within tags <></>, possible?

    Hi, i got a dillema... for a company i need to make every occurence of it's company name to be in red and bold font. i have writen a simple function that i can call and filter all text database records Function companyName(inputText)  If inputText<>"" Then   companyName= ...
    Posted to Construction Advice (Forum) by RvdH on June 28, 2008