Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
V

V ktor

@V ktor
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Searching for words in a string
    V V ktor

    Does this meet your needs? string str = "How do I search if a words exist in a string"; MatchCollection mc = Regex.Matches(str, " a "); Console.WriteLine(mc.Count.ToString()); or perhaps... string str = "How do I search if a words exist in a string"; int index = str.IndexOf(" a "); int numWords = 0; while(index != -1) { index = str.IndexOf(" a ", index + 1); numWords++; } Console.WriteLine(numWords.ToString());

    C# question algorithms
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups