Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for regex (0.31 sec)

  1. src/archive/zip/reader_test.go

    0000190 00 00 00 00 00 00 00 00 00 00 00 72 2f 72 2e 7a
    00001a0 69 70 50 4b 05 06 00 00 00 00 01 00 01 00 35 00
    00001b0 00 00 6d 01 00 00 00 00`
    	s = regexp.MustCompile(`[0-9a-f]{7}`).ReplaceAllString(s, "")
    	s = regexp.MustCompile(`\s+`).ReplaceAllString(s, "")
    	b, err := hex.DecodeString(s)
    	if err != nil {
    		panic(err)
    	}
    	return b
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    	{"a", "a", 0},
    	{"\x80", "\xffb", 0},
    	{"aaa", "a", 2},
    	{"abc", "xyz", -1},
    	{"abc", "ab", 1},
    	{"ab☺c", "x☺yz", 2},
    	{"a☺b☻c☹d", "cx", len("a☺b☻")},
    	{"a☺b☻c☹d", "uvw☻xyz", len("a☺b")},
    	{"a.RegExp*", ".(|)*+?^$[]", 8},
    	{dots + dots + dots, " ", -1},
    	{"012abcba210", "\xffb", 6},
    	{"012\x80bcb\x80210", "\xffb", 7},
    	{"0123456\xcf\x80abc", "\xcfb\x80", 10},
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top