in reply to Re^5: Checking the include form and getting only the header name
in thread Checking the include form and getting only the header name
I noticed the below condition fails for the below input.Basically anything inside " " and <> should match except a space,how can we change the below match for this?
INPUT:- #include <io-pkt/iopkt_driver.h> --> should match #include "string.h " -->should not match #include "devnp-msm-ipc.h" -->should match if ($line =~ /#include [<"](\w+\.h)[>"]/)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Checking the include form and getting only the header name
by Eliya (Vicar) on Mar 20, 2011 at 02:34 UTC | |
by Anonymous Monk on Mar 20, 2011 at 03:46 UTC | |
by Anonymous Monk on Mar 20, 2011 at 06:12 UTC | |
by Anonymous Monk on Mar 20, 2011 at 06:49 UTC | |
by Anonymous Monk on Mar 20, 2011 at 07:08 UTC | |
|