c# - Substring with string, returning values between two words in a string -
i getting telnet buffer string following:
"<connected><sending_video_list><start_video_list>test.mp4|test_3.mp4|test_2.mp4|<end_video_list><playing_test.mp4_started>" i want select between 2 indicators <start_video_list> , <end_video_list> in case euqal to:
test.mp4|test_3.mp4|test_2.mp4|
is there efficient way without manipulating whole string?
well, if want, can use regex:
<start_video_list>([^<]*)<end_video_list> and first captured group (\1) want.
Comments
Post a Comment