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
  1. Home
  2. Web Development
  3. ASP.NET
  4. find a word

find a word

Scheduled Pinned Locked Moved ASP.NET
databasetutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kissy16
    wrote on last edited by
    #1

    dear all, how to get a specific word from a sentence considering the blank spaces also (sql query).

    kissy

    S A S 3 Replies Last reply
    0
    • K Kissy16

      dear all, how to get a specific word from a sentence considering the blank spaces also (sql query).

      kissy

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Hi Kissy, you could use regular expressions. Do you need a sql query to get the word from the sentence, or can you do this in code? Regards Sebastian

      It's not a bug, it's a feature! Me in Softwareland.

      1 Reply Last reply
      0
      • K Kissy16

        dear all, how to get a specific word from a sentence considering the blank spaces also (sql query).

        kissy

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Kissy16 wrote:

        how to get a specific word from a sentence considering the blank spaces also (sql query).

        Does it anything releated to ASP.NET ?

        cheers, Abhijit My Recent Article : Beginner's Guide to ASP.NET Application Folder

        1 Reply Last reply
        0
        • K Kissy16

          dear all, how to get a specific word from a sentence considering the blank spaces also (sql query).

          kissy

          S Offline
          S Offline
          Satish Developer
          wrote on last edited by
          #4

          You can use indexOf() funciton to check whether word exist or not. Ex: _line = "This is the word to find in sentence"; int k = _line.indexOf("word") if k = -1, the searching word not found otherwise it is found

          G. Satish

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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