xref: /freebsd/contrib/netbsd-tests/lib/libc/regex/data/anchor.in (revision 9268022b74279434ed6300244e3f977e56a8ceb5)
1*57718be8SEnji Cooper# anchoring and REG_NEWLINE
2*57718be8SEnji Cooper^abc$		&	abc	abc
3*57718be8SEnji Coopera^b		-	a^b
4*57718be8SEnji Coopera^b		b	a^b	a^b
5*57718be8SEnji Coopera$b		-	a$b
6*57718be8SEnji Coopera$b		b	a$b	a$b
7*57718be8SEnji Cooper^		&	abc	@abc
8*57718be8SEnji Cooper$		&	abc	@
9*57718be8SEnji Cooper^$		&	""	@
10*57718be8SEnji Cooper$^		-	""	@
11*57718be8SEnji Cooper\($\)\(^\)	b	""	@
12*57718be8SEnji Cooper# stop retching, those are legitimate (although disgusting)
13*57718be8SEnji Cooper^^		-	""	@
14*57718be8SEnji Cooper$$		-	""	@
15*57718be8SEnji Cooperb$		&	abNc
16*57718be8SEnji Cooperb$		&n	abNc	b
17*57718be8SEnji Cooper^b$		&	aNbNc
18*57718be8SEnji Cooper^b$		&n	aNbNc	b
19*57718be8SEnji Cooper^$		&n	aNNb	@Nb
20*57718be8SEnji Cooper^$		n	abc
21*57718be8SEnji Cooper^$		n	abcN	@
22*57718be8SEnji Cooper$^		n	aNNb	@Nb
23*57718be8SEnji Cooper\($\)\(^\)	bn	aNNb	@Nb
24*57718be8SEnji Cooper^^		n^	aNNb	@Nb
25*57718be8SEnji Cooper$$		n	aNNb	@NN
26*57718be8SEnji Cooper^a		^	a
27*57718be8SEnji Coopera$		$	a
28*57718be8SEnji Cooper^a		^n	aNb
29*57718be8SEnji Cooper^b		^n	aNb	b
30*57718be8SEnji Coopera$		$n	bNa
31*57718be8SEnji Cooperb$		$n	bNa	b
32*57718be8SEnji Coopera*(^b$)c*	-	b	b
33*57718be8SEnji Coopera*\(^b$\)c*	b	b	b
34