Hi,
i want to search in a text some stuff.
i have a message like this:
GET /PIN=TOGGLE HTTP/1.1 Host: 172.17.0.129 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Connection: keep-alive Cache-Control: max-age=0
And i want to search for 'Chrome' or 'Safari'. Theres no Safari/chrome in that message, but the Contains-Function give me always a True back. i have my Contains-Function from http://forums.netdui...stringcontains/
<System.Runtime.CompilerServices.Extension()> _ Public Function Contains(ByVal _src As [String], ByVal _search As Char) As Boolean For i As Integer = _src.Length - 1 To 0 Step -1 If _src.IndexOf(_search) >= 0 Then Return True End If Next Return False End Function
Where is the problem :S
mfg
gfc
I uploaded the Full code, its a webserver for the netduino plus (.MF 4.2)