octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows regexp problem


From: Richard Crozier
Subject: Re: Windows regexp problem
Date: Wed, 2 Mar 2016 17:33:38 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

On 02/03/16 17:27, JohnD wrote:
Message: 1
Date: Wed, 2 Mar 2016 11:01:32 +0000
From: Richard Crozier <address@hidden>
To: Octave Maintainers <address@hidden>
Subject: Windows regexp problem
Message-ID: <address@hidden>
Content-Type: text/plain; charset=utf-8; format=flowed

I have a user on windows using the 4.0.0 release who is getting an error
like this:

error: regexp: PCRE does not support \L, \l, \N{name}, \U, or \u at
position 4 of
expression

The offending regexp is something like:

^C:\Users\ <SNIP> \tb-
xfemm_v1_6\mfemm\\.\.\cfemm\libfemm\liblua\lapi\.o$

I've redacted some to protect their privacy, but could provide it off list
if
needed. The missing bit is just the rest of the file path.

The error occurs in a file mmake.m (which is an mfile implementation of a
subset
of gnu make functionality). If interested you can find it here:

https://github.com/mbauman/mmake

I get no such error on Linux, so I'm wondering if this is a bug, or known
limitation of the underlying regex library on windows, googling leads me
to this:

http://stackoverflow.com/questions/3538293/php-regular-expression-pcre-
does-not-support-l-l-n-p

Thanks,

Richard


I think I had a similar issue a few days ago - the file name parts with
single '\' in the expressions need be changed to \\



Thanks, in my case I solved it by just using forward slashes for all file paths on both windows and linux, but I'll bear this in mind.

Richard

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]