Search colon

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

Hi: How to i search ":" in a sentence by ASP. For eg:

abc efg hij : kkk ddd lll
fda fdasf jfdas fdas fsad

When i read a line i want to skip those lines where ":" is present

data = ts.ReadLine
 
Hi: How to i search ":" in a sentence by ASP. For eg:

abc efg hij : kkk ddd lll
fda fdasf jfdas fdas fsad

When i read a line i want to skip those lines where ":" is present

data = ts.ReadLine

if (!data.Contains(":"))
{
// process the line
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top