TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
thewanz
NA
7
0
Can't get correct split() result
Apr 25 2005 5:07 PM
I am trying to split a string into 3 parts (array) and return the last element(email address). Currently this code is returning the second and the third elements in VS.NET 2002. Can someone tell me why that is? private string getEmailAddr(string x) { string emStr = "Foo Foo
[email protected]
"; string[] parts = emStr.Split(new char[] {' '}, 3); emStr = parts[2].ToString(); return emStr; }
Reply
Answers (
6
)
Selecting a printer to use without a dialogbox
How to set Excel spreadsheet column type to Text thru program