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
Ashwanikumar singh
NA
39
48.1k
Get the value of .Contains in C#
Jan 10 2018 10:51 AM
Hello guys,
I have one doubt, suppose i have a some string
Say for e.g
"Hello world, i am a software developer"
Now I want to check if my string exists in above string then i want to extract that value.
e.g
string mystring=
"Hello world, i am a software developer"
if(mystring.Contains("software") || mystring.Contains("abc"))
{
//here if software exists then store the software in below string
string str= //here i want to store the value which i am checking i.e "software" if it exists
}
How do i do this...?
Can anybody tell me...??
Any help would be much appreciated
Thanks !!!
Reply
Answers (
1
)
XML Encrypted or Not?
.Net API problem with production credentials