Posted By: Cybermagellan | May 4th @ 9:39 AM
page 1 of 1
Comments: 2 | Views: 394
Cybermagellan
Cybermagellan
Live for nothing, or die for everything
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?

obrienslalom
obrienslalom
(2 2 2 3) *3 | 3 3 3
It is pretty simple to do with regex with something like:

@(\w+)

It is also pretty easy to write something from scratch for this type of thing...
You could also use the Instr() function in VB.

But if it's always going to start with "@", then just do a substring.
page 1 of 1
Comments: 2 | Views: 394
Microsoft Communities