开发者

How do you pull out a specific set of characters from a giant mess?

I h开发者_如何学编程ave a big string with a lot of different data and I need to grab one specific thing. The string looks something like this;

Director: John Smith Writer: Jane Doe Producer: Harry Wilson ....

I need to grab just the directors name and none of the other info. How do I grab just the info after the Director: and before Writer?


IF the string will always have the word director before and writer after, find the location of substing director, sinf the location of the substring writer then take the characters between.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜