Pregunta

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.

¿Fue útil?

Solución

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

use this regex:

\).*

And replace it with )

Otros consejos

(.*)(?:tagged)

The above regex will select everything before tagged.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top