Code:
(\s+\d{5})?
(\s+\d{5})?
/(\d{1,5}).*\b(A[LKSZRAP]|C[AOT]|D[EC]|F[LM]|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEHINOPST]|N[CDEHJMVY]|O[HKR]|P[ARW]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])\b/gm
POST /blah HTTP/1.1 Host: example.com Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Content-Type: application/x-www-form-urlencoded Content-Length: 25
string mapFromId(int id) { switch(id) { case 30: return "Last Resort"; default: return "Invalid Map"; } }
<xsl:value-of select="substring-before(substring-after(TAXNAME,'CST '),'%')"/>
Dictionary<int, string> data = new Dictionary<int, string>(); data.Add(30, "The string for 30"); string value = data[30]; //gets the string associated with the key 30. in this case "The string for 30"
System.IO.FileStream outFileStream = new System.IO.FileStream(outFile, System.IO.FileMode.Create); zlib.ZOutputStream outZStream = new zlib.ZOutputStream(outFileStream); System.IO.FileStream
public static void CopyStream(System.IO.Stream input, System.IO.Stream output) { byte[] buffer = new byte[2000]; int len; while ((len = input.Read(buffer, 0, 2000)) > 0) { output.Write(buffer, 0, len); //it hangs here on the last write }
using (WebClient wc = new WebClient())
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(myUri); request.Headers.Add(HttpRequestHeader.Cookie, webBrowser1.Document.Cookie); WebResponse response = request.GetResponse(); Image captchaImage
Leave a comment: