in reply to Re: Checking the include form and getting only the header name
in thread Checking the include form and getting only the header name
I am trying to get only the #include(.*).h part in a given line and using the below code which doesnt seem to be working for me.Can any one advise what is wrong?
INPUT:- ./files/src/services/usb_dcd/private/internals.h:#include "queue.h" ./files/src/services/usb_dcd/private/queue.h:#include <sys/queue.h> $line =~ /\#include(.*)\.h/; # +get only the #include OUTUT:- #include "queue.h" #include <sys/queue.h>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Checking the include form and getting only the header name
by Eliya (Vicar) on Mar 20, 2011 at 01:22 UTC | |
by Anonymous Monk on Mar 20, 2011 at 01:47 UTC | |
by Eliya (Vicar) on Mar 20, 2011 at 01:50 UTC | |
by Anonymous Monk on Mar 20, 2011 at 02:18 UTC | |
by Eliya (Vicar) on Mar 20, 2011 at 02:34 UTC | |
| |
|
Re^3: Checking the include form and getting only the header name
by Anonymous Monk on Mar 20, 2011 at 01:19 UTC |