I have tried to write a regular expression for the an example code to use in grep search.
My requirement is to get string output that matches only the below
execute(any word here)
For eg.
execute(any)
execute(math)
and the results should not output
execute("any")
execute("math")
I already tried the following, but the problem with this is that it outputs everything and doesn't give me the required solution.
grep -E '^execute\(*([^)]+)*\)'
I expect my output to be execute(math) or execute(s) and not
execute("math") or execute("s")