Hi Guys,
I have never been the greatest with regex, in my application what i am trying to do is find the value after: "username:" e.g. username: graham23s
The very basic code i have so far is:
It's not working but it's a start lol
Any help would be appreciated!
thanks guys
Graham
I have never been the greatest with regex, in my application what i am trying to do is find the value after: "username:" e.g. username: graham23s
The very basic code i have so far is:
VB.NET:
Dim emailSource As New Regex("(?<=""username:"").*?", _
RegexOptions.IgnoreCase Or RegexOptions.Singleline)
Dim matches As MatchCollection = emailSource.Matches(GetTextBody(message))
Dim usernameValue As String = String.Empty
For Each captchaSourceMatch As Match In matches
usernameValue = matches(0).ToString
MessageBox.Show(usernameValue)
Next
It's not working but it's a start lol
Any help would be appreciated!
thanks guys
Graham