[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regular expressions
From: |
Gary V. Vaughan |
Subject: |
Re: regular expressions |
Date: |
28 May 2002 21:21:38 +0100 |
M4 doesn't expand C-escape sequences such as \t. This works:
regexp(`a b', `a[ ]b', `\&')
HTH,
Gary.
On Tue, 2002-05-14 at 00:13, Thomas Beckmann wrote:
> Hello,
>
> I´m using m4 1.4 on Windows 98 and I have a problem with regular
> expressions in patsubst or regexp.
>
> My example
>
> regexp(`a b', `a[ \t\n]+b', `\&')
>
> works as expectet ("a b") when there is only a space between a and b but
> fails (no output) when I use tab or newline.
>
> I hope that my problem isn`t only a misunderstanding, but I can`t see why
> it should be.
>
>
> Thank you in advance
>
> Thomas Beckmann
--
())_. Gary V. Vaughan gary@(oranda.demon.co.uk|gnu.org)
( '/ Research Scientist http://www.oranda.demon.co.uk
,_())____
/ )= GNU Hacker http://www.gnu.org/software/libtool \'
`&
`(_~)_ Tech' Author http://sources.redhat.com/autobook
=`---d__/