Friday

C#(csharp):remove (replace with whitespace) not allowed (non printable) characters from XML


rt = Regex.Replace(rt,"[\x01-\x1F]", "");


more...

1 comment:

Anonymous said...

also you can kick-off unnecessary chars from string by regexp
Dim s As String = Regex.Replace(sb.ToString, "[\xC2]", "")
s = Regex.Replace(s, "[\xA0]", "")

imagemagic add text to image

rem different types of text annotations on existing images rem cyan yellow orange gold rem -gravity SouthWest rem draw text and anno...