Posted on: 12/28/2014 12:46:42 AM | Views : 923

Hi All;
 want to get Hashtags from text string but  For...Next doesn't Print the Hashtag Words
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load ' Define a regular expression for repeated words. Dim rx As New Regex("(#)((?:[?-?A-Za-z0-9-_]*))", RegexOptions.Compiled Or RegexOptions.IgnoreCase) ' Define a test string. Dim text As String = Label1.Text ' Find matches. Dim matches As MatchCollection = rx.Matches(text) ' Report on each match. For Each match As Match In matches Dim groups As GroupCollection = match.Groups Response.Write(groups(0)) Next End Sub the pattern
"(#)((?:[?-?A-Za-z0-9-_]*))"  works fine in another application

? Thanks in advance. ?

Go to the complete details ...