Balajiprasad's useful codes
Important codings & concepts in web & window applications using microsoft technologies.
Monday, December 12, 2011
Regex to replace outside tags not content
//Replacing only span as Font
string
strName =
"<span> test </span>"
;
strName =
Regex
.Replace(strName,
"<span>(.*?)</span>"
,
"<Font>$1</Font>"
);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment