Skip to content

Instantly share code, notes, and snippets.

#![feature(collections)]
#![feature(box_patterns)]
#[derive(Clone, Debug)]
enum Regex {
Term(RegexTerm),
Or(RegexTerm, Box<Regex>),
}
impl Regex {
S3 traceroute:
traceroute to s3-1-w.amazonaws.com (54.231.0.145), 64 hops max, 52 byte packets
1 104.36.1.1 (104.36.1.1) 3.439 ms 2.982 ms 3.082 ms
2 172.16.66.17 (172.16.66.17) 4.792 ms 4.924 ms 3.081 ms
3 172.16.70.41 (172.16.70.41) 1.868 ms 6.502 ms 8.978 ms
4 xe-0-3-0-17.r06.nycmny01.us.bb.gin.ntt.net (129.250.192.129) 2.753 ms 2.169 ms 2.273 ms
5 ae-9.amazon.nycmny01.us.bb.gin.ntt.net (129.250.201.130) 2.094 ms
ae-11.amazon.nycmny01.us.bb.gin.ntt.net (129.250.201.138) 2.475 ms
ae-10.amazon.nycmny01.us.bb.gin.ntt.net (129.250.201.134) 2.133 ms
6 54.240.229.78 (54.240.229.78) 8.173 ms