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