1 1.1 pgoyette # back references, ugh 2 1.1 pgoyette a\(b\)\2c bC ESUBREG 3 1.1 pgoyette a\(b\1\)c bC ESUBREG 4 1.1 pgoyette a\(b*\)c\1d b abbcbbd abbcbbd bb 5 1.1 pgoyette a\(b*\)c\1d b abbcbd 6 1.1 pgoyette a\(b*\)c\1d b abbcbbbd 7 1.1 pgoyette ^\(.\)\1 b abc 8 1.1 pgoyette a\([bc]\)\1d b abcdabbd abbd b 9 1.1 pgoyette a\(\([bc]\)\2\)*d b abbccd abbccd 10 1.1 pgoyette a\(\([bc]\)\2\)*d b abbcbd 11 1.1 pgoyette # actually, this next one probably ought to fail, but the spec is unclear 12 1.1 pgoyette a\(\(b\)*\2\)*d b abbbd abbbd 13 1.1 pgoyette # here is a case that no NFA implementation does right 14 1.1 pgoyette \(ab*\)[ab]*\1 b ababaaa ababaaa a 15 1.1 pgoyette # check out normal matching in the presence of back refs 16 1.1 pgoyette \(a\)\1bcd b aabcd aabcd 17 1.1 pgoyette \(a\)\1bc*d b aabcd aabcd 18 1.1 pgoyette \(a\)\1bc*d b aabd aabd 19 1.1 pgoyette \(a\)\1bc*d b aabcccd aabcccd 20 1.1 pgoyette \(a\)\1bc*[ce]d b aabcccd aabcccd 21 1.1 pgoyette ^\(a\)\1b\(c\)*cd$ b aabcccd aabcccd 22