質問

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