|
|
Browse by Tags
All Tags » replace » html
-
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.
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
- ...
-
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, ...
-
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.
-
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.)
|
|
|