473,466 Members | 1,358 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

1 New Member
"cid:image002.jpg@01CDC1B4.02286C10"> this is the statement. All characters after @ are random and need to be removed. I want to replace cid:image002.jpg and remove all after @ and before>.
Feb 28 '13 #1
1 1540
Mikkeee
94 New Member
Expand|Select|Wrap|Line Numbers
  1. string longFileName = "cid:image002.jpg@01CDC1B4.02286C10";
  2. string shortFileName = longFileName.Substring(0, longFileName.IndexOf("@"));
  3.  
Feb 28 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Alex | last post by:
Hi all, Thanks to Els from another post I got my CSS hover-overs working in IE, Firefox, and about everything else I've tried. Problem is the CSS hover overs are VERY choppy in IE while very...
3
by: Tony Johansson | last post by:
Hello!! I have these two statements "typedef const char *enum_txt;" "enum_txt phase_tab = {"IDLE","LAUNCHING","LAUNCHED","ROLLING","BOOSTERRELEASE","SPACE"};" It's no problem to put the...
2
by: Jay Wolfe | last post by:
Hi, I came across this statement and it has a confusing element. I know the whole '?:" construct and the assignment within the compare, but what's up with the comma? All the variables here are...
11
by: cooch17 | last post by:
Greetings - I have a number of websites that make use of popups spawned by a user clicking a link. Nothing fancy - here is typical code: <a href="popup.html" target="pop_win"...
2
by: Frank | last post by:
I am reading other people's code and come across this statement. Does it mean phase revolve arround 0,1,2 and 3 & 3 makes 0? Thank you. phase = 0; for (i = 0; i <= 100; i++) {...
3
by: Max Adams | last post by:
How can I get this statement to work: string strData = '\xB'; I get the error: Cannot implicitly convert type 'char' to 'string'. Can anyone help? PT
2
by: sam | last post by:
Hi, can anybody tell me the meaning of this:- void printfunc( void(*) (int&,int&) int&,int&) ;
1
by: herc | last post by:
I think what I need to do is REALLY basic from the HTML/CSS prospective. The long and the short of it is, I have developed a Kiosk browser that embeds either IE7, IE6 or Firefox. When the kiosk...
6
by: CTG | last post by:
"update set UPDATE-FLAG=false, UPDATE-DT= '10/09/2007 4:09:59 PM' WHERE ICCID='I1' " UPDATE_FLAG is a YES/NO ICCID is TEXT I have tried YES, NO as well but still fails,
3
by: mutaher | last post by:
geography(name, region, area, population, gdp) Table Name = Geography Column Name = Name, Region, Area, Population, GDP Help me execute this statement List the name and region of countries...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.