Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[Regex]The opposite of the regex

Hello, I have a big probleme !

I make of the syntactic colorization, everything works but I would like to get back what is'nt treated in my list of word!

Je fais de la colorisation syntaxique, tout fonctionne mais j'aimerais récupérer ce qui n'est pas traité dans ma liste de mot !

My code :

keywords = my word list
Code
Dim tokens As New Collection(Of ColorToken) 'Défintion d'une nouvelle collection de ColorTokens
            If sourceCode Is Nothing OrElse sourceCode.Length = 0 Then Return tokens 'Si le code est vide, on retourne la collection vide

            'Définition de l'index de fin
            Dim endPos As Int32 = offset + sourceCode.Length
            'Déclaration d'un RegEx repérant les mots clés
            Dim keywordRegEx As New Regex("(?<=\s|{|}|\(|\)|,|\=|^)(" & keywords & ")\b", RegexOptions.IgnoreCase Or RegexOptions.CultureInvariant)

            'Coloration des mots-clés
            For Each mtch As Match In keywordRegEx.Matches(sourceCode) 'Recherche des mots clés
                tokens.Add(New ColorToken(offset + mtch.Index, mtch.Length, Color.Blue, Color.Empty))
            Next
"Iteration" ,;

Code
For Each element [ As datatype ] In group
    [ statements ]
    [ Continue For ]
    [ statements ]
    [ Exit For ]
    [ statements ]
Next [ element ]

For number = firstNumber To lastNumber
If number Mod 2 = 0 Then
Yield number
Else etc etc
End If
Next
Assert failure(PID 10704 [0x000029d0], Thread: 10960 [0x2ad0]): pBuffer != NULL
Just curious but wtf? Make sense!!!
(Jan 5, 2014 02:16 PM)ident Wrote:  Just curious but wtf? Make sense!!!

I was thinking this the first 3 times I looked at this thread, lmao.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by Josh‎Jul 18, 2015 03:38 PM 9 238 Jul 18, 2015 03:38 PM
Last Post: log dot zip
[.NET] by polas6Apr 25, 2014 11:10 AM 9 191 Apr 25, 2014 11:10 AM
Last Post: Moen
[.NET] by VexaneApr 6, 2014 09:47 PM 2 78 Apr 6, 2014 09:47 PM
Last Post: Vexane