[ILUG] [OTish] Regex question...

Stephen Shirley diamond at csn.ul.ie
Mon Jan 7 18:12:05 GMT 2002


On Mon, Jan 07, 2002 at 06:00:07PM +0000, Paul Fitzpatrick wrote:
> eh 
> 
> %s/\#include \"foo\\bar\\apples.h\"/\#include \"foo\/var\/apples.h\"/g
> 
> should do it fine..
Ah - well yes it would - but the problem is that i want the regex to
work for all directories. I.e. I have c files with

#include "foo\bar\apples.h"
#include "oof\rab\oranges.h"
#include "ofo\bra\bananas.h"

etc etc, and it would be nice to be able to run just one search-replace,
but then again it's probably just wishful thinking.

Steve
-- 
"My mom had Windows at work and it hurt her eyes real bad"




More information about the ILUG mailing list