i have this string

The Walking Dead: Season 1 (DVD) tagged "the walking dead" 61 times

and i need to truncate this string, after this char ")" or delete the word "tagged" and remove all words after this.

Thanks at all.

有帮助吗?

解决方案

Don't know what language you are using, but this should work.

use this regex:

\).*

And replace it with )

其他提示

(.*)(?:tagged)

The above regex will select everything before tagged.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top