[Solved] Remove some specific string with special character

[ad_1]

You can use this regex,

\s+\[.*(?=\b\d+)

and replace it with empty string.

You start with one or more whitespace then match a [ using \[ and then .* consumes all the characters greedily and only stops when it sees a number using positive look ahead (?=\b\d+)

Regex Demo

0

[ad_2]

solved Remove some specific string with special character