try this: open I, "inputfile"; my @files; while(<I>) { if (/#include\s*(.+?)/sig) { push @files, $1 } } if i understand your problem correctly, @files should hold all the "foo/bar.h" stuff hth Jos Boumans > I need to match the following type of #include statement found in a C > header file: > #include " test/bar.h " > #include " other/foo.h " -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
- Regex......some help quickly!!!! Yvonne Murphy
- Re: Regex......some help quickly!!!! Jos I. Boumans
- Re: Regex......some help quickly!!!! Brett W. McCoy
- RE: Regex......some help quickly!!!! Mooney Christophe-CMOONEY1
- RE: Regex......some help quickly!!!! Mooney Christophe-CMOONEY1