I can't figure out how to match this pattern via a grep command I am issuing via Python.
I want to match a string in the form of
foo.bar([anything including newlines, spaces, tabs])
.
I am trying with:
regex = " foo.bar(.*) "
bashCommand = "grep"+" -r -h"+regex+baseDir
process = subprocess.Popen(bashCommand.split(), stdout=subprocess.PIPE)
requires = process.communicate()[0]
But I fail to match this string
dojo.require("abc.def"
);