Browse by Tags
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 ...
I want to change a font element to an XHTML compatible variant.
<font face="arial" size="1"
color="red" >hello world</font>
style='font-family: arial; font-size: 1; color: red;'>hello
- the font attributes can change order
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>');
I don't own Dreamweaver, but I'll try to help you anyway. Try
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.
I would like to make a find/replace Regexp that ignores matches found inside HTML tags. Is there a simple way to do this?