xref: /freebsd/usr.bin/m4/tests/patterns.m4 (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
1dnl $OpenBSD: src/regress/usr.bin/m4/patterns.m4,v 1.4 2003/06/08 20:11:45 espie Exp $
2patsubst(`quote s in string', `(s)', `\\\1')
3patsubst(`check whether subst
4over several lines
5works as expected', `^', `>>>')
6patsubst(`# This is a line to zap
7# and a second line
8keep this one', `^ *#.*
9')
10dnl Special case: empty regexp
11patsubst(`empty regexp',`',`a ')
12