I have a string field with records like the following
“Harry Potter (HP) (ab-cd)” “John Doe (ab-cd)” “Richard Smith (RS)” “William Johnson”
I would like to remove the “(ab-cd)” part from all records without removing any other bracketed expressions.
The results should be: “Harry Potter (HP)” “John Doe” “Richard Smith (RS)” “William Johnson”
I think regexp_replace() needs to be used; but I am not good with regular expressions.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.