View Single Post
Old 07-15-2008   #1 (permalink)
Nick B


 
 

regular expressions to replace but keep character?

Is there a way to use Replace with Regular Expressions but keep a character
in the original string? A simplified example: If we have "< a >" or "<b >"
or "< br>" within a string and we want to remove the spaces, but keep the
character, is there a way this can be done? A Regular Expression can find
the substring with something like "<\s*[a-z]\s*>" (only finds one character),
but the ReplaceWith argument appears to be static. Is there any way to keep
the character?

Thanks!,
Nick
My System SpecsSystem Spec