Tech Off Thread

3 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Best way to find a "string"

Back to Forum: Tech Off
  • User profile image

    Continuing on with my app...

    I'm loading the tweets I get into RichTextBox's (because it provides detectURL), and I'm looking at now trying to detect for replies (@'s)...I had thought about using a few different methods to find these and just asking for some opinions....

    Regex? Trim? Split? (I know in PHP you could explode)....suggestions?

  • User profile image

    It is pretty simple to do with regex with something like:


    It is also pretty easy to write something from scratch for this type of thing...

  • User profile image

    You could also use the Instr() function in VB.

    But if it's always going to start with "@", then just do a substring.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.