Hi,
I need to remove square brackets and content within it from a field in a search.
eg:
Input: My name is John [Employee]
Output: My name is John
I tried with the following expression:
rex mode=sed field="name" "s/\[[^]]*//"
It returns output as: `My name is John ]`
I don't want the closing square bracket.
How do I modify the above pattern so that I get the desired output?
Thanks
↧