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

Browse by Tags

All Tags » replace » html
  • gawk: multiple replacement of different regexp's

    This is my task: I have written lots of texts that I transform into HTML code, TeX code or other "printing languages" using an Gawk script (I work on a Windows computer using cygwin for Unix-like tasks like running shell scripts). Within the text special characters are coded in a special way so they can be replaced with codes which ...
    Posted to Construction Advice (Forum) by Daniel on March 12, 2011
  • <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
  • Convert BBCode, [color] tags, to HTML

    Greetings.  I have some problems using a Regex replace for converting the following BBCode: string bbCode = " [ color=red]Red[/color]"; Regex regExp = new Regex(@"\[ color=([^\]]+)\]([^\]]+)\[\/color\]"); string htmlCode = regExp.Replace(bbCode, "<span style=\'color: $1\'>$2</span>'); Essentially, ...
    Posted to Construction Advice (Forum) by Bassiq on April 7, 2008
  • Re: alt tag search / relpace in Dreamweaver

    I don't own Dreamweaver, but I'll try to help you anyway. Try (<img\b[^>]*?\salt\s*=\s*"[^"]*) in the find field and $1 | appended text here in the replace field. This should also work, if the alt attribute comes after an href attribute.
    Posted to Construction Advice (Forum) by eSquire on April 27, 2007
  • Ignoring things in HTML tags

    I would like to make a find/replace Regexp that ignores matches found inside HTML tags. Is there a simple way to do this?   (In case it matters, I'm talking about javascript.) 
    Posted to Construction Advice (Forum) by oliver on December 15, 2006