1155324Simpdnl $FreeBSD$ 2155324Simpdnl $OpenBSD: src/regress/usr.bin/m4/patterns.m4,v 1.4 2003/06/08 20:11:45 espie Exp $ 3213496Scognetpatsubst(`quote s in string', `(s)', `\\\1') 4155324Simppatsubst(`check whether subst 5155324Simpover several lines 6155324Simpworks as expected', `^', `>>>') 7155324Simppatsubst(`# This is a line to zap 8155324Simp# and a second line 9155324Simpkeep this one', `^ *#.* 10155324Simp') 11155324Simpdnl Special case: empty regexp 12155324Simppatsubst(`empty regexp',`',`a ') 13155324Simp