Click here to Skip to main content
14,271,845 members

.NET Framework

 
GeneralRe: Vb.net delete rows based on search criteria Pin
Gerry Schmitz22-Mar-18 22:40
mveGerry Schmitz22-Mar-18 22:40 
GeneralRe: Vb.net delete rows based on search criteria Pin
Andiko23-Mar-18 0:14
memberAndiko23-Mar-18 0:14 
AnswerRe: Vb.net delete rows based on search criteria Pin
Richard Deeming23-Mar-18 2:23
mveRichard Deeming23-Mar-18 2:23 
GeneralRe: Vb.net delete rows based on search criteria Pin
Andiko23-Mar-18 2:51
memberAndiko23-Mar-18 2:51 
GeneralRe: Vb.net delete rows based on search criteria Pin
Richard Deeming23-Mar-18 2:59
mveRichard Deeming23-Mar-18 2:59 
GeneralRe: Vb.net delete rows based on search criteria Pin
Andiko23-Mar-18 4:13
memberAndiko23-Mar-18 4:13 
GeneralRe: Vb.net delete rows based on search criteria Pin
Andiko23-Mar-18 4:21
memberAndiko23-Mar-18 4:21 
GeneralRe: Vb.net delete rows based on search criteria Pin
Richard Deeming23-Mar-18 4:22
mveRichard Deeming23-Mar-18 4:22 
Change the RemoveUser function to:
Shared Function RemoveUser(ByVal groupedAccounts As IList(Of IList(Of String)), ByVal userToRemove As String) As Boolean
    Dim found As Boolean = False
    Dim pattern As New Text.RegularExpressions.RegEx(
        "^\s*user\s*=\s*" & Text.RegularExpressions.Regex.Escape(userToRemove) & "\s*$", 
        Text.RegularExpressions.RegexOptions.IgnoreCase)
    
    For index As Integer = groupedAccounts.Count - 1 To 0 Step -1
        If groupedAccounts(index).Any(Function (line) pattern.IsMatch(line)) Then
            groupedAccounts.RemoveAt(index)
            Found = true
        End If
    Next
    
    Return found
End Function

Regular Expression Language - Quick Reference | Microsoft Docs[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Vb.net delete rows based on search criteria Pin
Andiko23-Mar-18 4:46
memberAndiko23-Mar-18 4:46 
GeneralRe: Vb.net delete rows based on search criteria Pin
Richard Deeming23-Mar-18 4:58
mveRichard Deeming23-Mar-18 4:58 
GeneralRe: Vb.net delete rows based on search criteria Pin
Andiko23-Mar-18 5:11
memberAndiko23-Mar-18 5:11 
QuestionEncoding Hex Write Data Pin
Orochi9727-Feb-18 6:08
memberOrochi9727-Feb-18 6:08 
QuestionRe: Encoding Hex Write Data Pin
Eddy Vluggen27-Feb-18 8:02
mveEddy Vluggen27-Feb-18 8:02 
QuestionRe: Encoding Hex Write Data Pin
Orochi9727-Feb-18 22:45
memberOrochi9727-Feb-18 22:45 
AnswerRe: Encoding Hex Write Data Pin
Eddy Vluggen28-Feb-18 1:13
mveEddy Vluggen28-Feb-18 1:13 
QuestionBest Tools For .NET Development Pin
Priyanka Kale26-Feb-18 0:31
memberPriyanka Kale26-Feb-18 0:31 
AnswerRe: Best Tools For .NET Development Pin
Richard MacCutchan26-Feb-18 0:32
protectorRichard MacCutchan26-Feb-18 0:32 
AnswerRe: Best Tools For .NET Development Pin
Eddy Vluggen26-Feb-18 0:38
mveEddy Vluggen26-Feb-18 0:38 
AnswerRe: Best Tools For .NET Development Pin
Gerry Schmitz26-Feb-18 5:15
mveGerry Schmitz26-Feb-18 5:15 
QuestionImplementation of Chat Bot Pin
Member 1362292025-Feb-18 18:46
memberMember 1362292025-Feb-18 18:46 
AnswerRe: Implementation of Chat Bot Pin
Pete O'Hanlon25-Feb-18 20:49
protectorPete O'Hanlon25-Feb-18 20:49 
Question16bit grayscale png export? (and import?) Pin
primem0ver22-Feb-18 10:00
memberprimem0ver22-Feb-18 10:00 
AnswerRe: 16bit grayscale png export? (and import?) Pin
Gerry Schmitz22-Feb-18 11:49
mveGerry Schmitz22-Feb-18 11:49 
GeneralRe: 16bit grayscale png export? (and import?) Pin
primem0ver22-Feb-18 13:47
memberprimem0ver22-Feb-18 13:47 
GeneralRe: 16bit grayscale png export? (and import?) Pin
Gerry Schmitz22-Feb-18 14:07
mveGerry Schmitz22-Feb-18 14:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.