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