How do I replace cid: filepath and remove everything else in this statement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clillefield
    New Member
    • Feb 2013
    • 1

    How do I replace cid: filepath and remove everything else in this statement

    "cid:image002.j pg@01CDC1B4.022 86C10"> this is the statement. All characters after @ are random and need to be removed. I want to replace cid:image002.jp g and remove all after @ and before>.
  • Mikkeee
    New Member
    • Feb 2013
    • 94

    #2
    Code:
    string longFileName = "cid:image002.jpg@01CDC1B4.02286C10";
    string shortFileName = longFileName.Substring(0, longFileName.IndexOf("@"));

    Comment

    Working...