I have tried this…
Dim myMatches As String() = System.Text.RegularExpressions.Regex.Split(postRow.Item('Post'), '\b\#\b')
But it is splitting all words, I want an array of words that start with#
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This seems to work…
c#
or vb.net
Given input text of…
‘asdfas asdf #asdf asd fas df asd fas #df asd f asdf’
…this will yield….
‘#asdf’ and ‘#df’
I’ll grant you that this does not get you a string Array but the MatchCollection is enumerable and so might be good enough.
Additionally, I’ll add that I got this through the use of Expresso. which appears to be free. It was very helpful in producing the c# which I am very poor at. (Ie it did the escaping for me.) (If anyone thinks I should remove this pseudo-advert then please comment, but I thought it might be helpful 🙂 Good times )