Regex negative look-behind in hgignore file
Posted
by jco
on Stack Overflow
See other posts from Stack Overflow
or by jco
Published on 2010-03-25T12:47:10Z
Indexed on
2010/03/25
12:53 UTC
Read the original article
Hit count: 400
I'm looking for a way to modify my .hgignore file to ignore all "Properties/AssemblyInfo.cs" files except those in either the "Test/" or the "Tests/" subfolders.
I tried using the negative look-behind expression
(?<!Test)/Properties/AssemblyInfo\.cs$
, but I didn't find a way to "un-ignore" in both folders "Test/" and "Tests/".
© Stack Overflow or respective owner