문제

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