Finding words in a list of text strings

Discussion in 'Programming' started by math20, Jul 26, 2006.

  1. #1
    How do I find words in a list of text strings? I would like to do it in excel but if there is some script that will do it that would be nice.

    Thanks!
     
    math20, Jul 26, 2006 IP
  2. Darrin

    Darrin Peon

    Messages:
    123
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You are looking for specific words in a long string? Depending on the language you are using, Regular Expressions work nicely for this. Perl, PHP, Java, C#, VB.NET are some common web server side languages that have RegEx classes.
     
    Darrin, Jul 26, 2006 IP
  3. math20

    math20 Peon

    Messages:
    1,562
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No, I am looking for a 3 letter word in a series of 3 letter text strings. Could you give specifics on how to do this?
     
    math20, Jul 26, 2006 IP
  4. Darrin

    Darrin Peon

    Messages:
    123
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Where are the series of 3 letter text strings? Are the seperate strings in an array object or something, or are they all in the same string seperated by a space or comma?

    How they are represented will make a difference in finding them. Also, what language are you using / prefer?
     
    Darrin, Jul 26, 2006 IP
  5. math20

    math20 Peon

    Messages:
    1,562
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #5
    They are currently in a list in an excel document, one per row.
     
    math20, Jul 26, 2006 IP
  6. Darrin

    Darrin Peon

    Messages:
    123
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    if you are interested in Programming a solution, my suggestion would be to export the values in to a comma delimted string, turn the string into an array that you could iterate through to find a match to another string.

    I am not aware of a ready made tool that will help you better than Excel would in finding strings in an Excel spreadsheet?
     
    Darrin, Jul 26, 2006 IP
  7. math20

    math20 Peon

    Messages:
    1,562
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I would prefer to do this inside of excel, I put it in programming because I didn't know of another category that would be good for it.
     
    math20, Jul 26, 2006 IP
  8. damien

    damien Guest

    Messages:
    879
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Why not use PHP's strpos()
     
    damien, Jul 31, 2006 IP