in reply to Parse for a name after a keyword search in all the files, given directory as input
Kindly let me know where am I going wrong!!
Unfortunately you have not said how it is going wrong and since we don't have your tree of files to run it on it's all down to guesswork. See SSCCE. "It doesn't work" is as useful to a developer as "I'm ill" is to a medic. Be specific.
Also, the lack of strict and warnings is a bad sign. See the Basic Debugging Checklist.
Best guess is that your regex is wrong. Is the exact string you wish to find " ^module " with all that whitespace and the caret?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parse for a name after a keyword search in all the files, given directory as input
by prash_sri (Initiate) on Feb 17, 2017 at 08:51 UTC | |
by hippo (Archbishop) on Feb 17, 2017 at 09:07 UTC |