xref: /freebsd/usr.bin/m4/tests/patterns.m4 (revision d8a0fe102c0cfdfcd5b818f850eff09d8536c9bc)
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