SirHammer1
Technical User
Hello Awk Masters!
I've been trying in vain for hours to develop a regexp for use in gsub or sub that will delete all text between parens on a given line, I'd like the parens to go also.
For example:
My knee hurts ( really bad )
Should come out
My knee hurts
In addition, there is another place in my file where I'd like to take the words in parens and put them into variables.
Can anyone please help?
Thanks for the assistance!
SirHammer1
I've been trying in vain for hours to develop a regexp for use in gsub or sub that will delete all text between parens on a given line, I'd like the parens to go also.
For example:
My knee hurts ( really bad )
Should come out
My knee hurts
In addition, there is another place in my file where I'd like to take the words in parens and put them into variables.
Can anyone please help?
Thanks for the assistance!
SirHammer1