Your technology certification is waiting. Enroll in Cloud Class ®
public void Replace()
String rtf = "Testing Image Embading<br />\r\n<img alt=\"\" src=\"/Web%20Cleint/Home%20Page/Images/Stop.png\" /><br />\r\nEmage Embabeded here\r\n";
Regex exp = new Regex(@"img (alt=\.)?([^\.]+)\.png", RegexOptions.IgnoreCase);
string InputText = rtf;
MatchCollection MatchList = exp.Matches(InputText);
for (int i = 0; i < MatchList.Count; i++)
string str = "\\\"";
string strToReplace = MatchList[i].ToString() + str;
Open in new window
This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.
private void Func()
String rtf = "";
rtf = rtf + @"\";
rtf = rtf + "\\";
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.