String text="99.91.220.138 - - [05/Oct/2015:06:37:26 +0300] "GET /R/0A/ID_0000013091.ism/QualityLevels(1469889)/Fragments(video=14795200000) HTTP/1.1" 200 658377 "-" "Firefox/1.5" "-" rt=0.000 ut="-" cs=HIT";
I want to read all the characters of this string and put the string between two empty spaces into an array:
- array[0] will be "99.91.220.138"
- array[1] will be "-"
- array[2] will be "-"
and now if there is a "[ ]" or quotation marks(" ") between two empty spaces,I want to get the string until the end of the marks like:
- array[3] will be "[05/Oct/2015:06:37:26 +0300]"
- array[4] will be "GET
/R/0A/ID_0000013091.ism/QualityLevels(1469889)/Fragments(video=14795200000)
HTTP/1.1"
after or before this I need to remove the "-" and something not necessary from the array to have more performance.
.
What kind of suggestion do you have except using regular expressions?