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