in reply to Re^6: Checking the include form and getting only the header name
in thread Checking the include form and getting only the header name
That's basically what we had in the beginning, except that you probably want \S+ (non-whitespace), or maybe \S.* (if there could be spaces within the file name), in place of \w+:
if ($line =~ /#include [<"](\S+\.h)[>"]/)
P.S. "string.h " shouldn't match anyway, because (\w+\.h)[>"] doesn't allow a space between .h and ".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Checking the include form and getting only the header name
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 | |
by Anonymous Monk on Mar 20, 2011 at 07:53 UTC | |
|