Please write a JS regular will be great god: ABCD123 - test data, test data replace ABCD123
Namely out behind the string - Chinese contain -
Note: string may contain parentheses ()
Such as:
(ABCD123 - test data, test data)
(ABCD123)
CodePudding user response:
STR. Replace (/[^)] +/, "")
CodePudding user response: