문제

i have this string:

A:B0049P1VHS|T:the walking dead|popular

and i want to take only this paramenter in regex "the wallking dead" in regex

Thanks!

도움이 되었습니까?

해결책

This regex can work for you if the |T: is fixed

\|T:([^|]+)

[^|]+ means any character except pipe | one or unlimited times.

다른 팁

Use this regex:

\|T:(.+?)\|

The first group will contain what you want.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top