开发者

divide and search for specific words

开发者 https://www.devze.com 2022-12-25 00:35 出处:网络
i have a text i want to divide it into equal 4 part and search for specific words that repeat in those part and display them

i have a text i want to divide it into equal 4 part and search for specific words that repeat in those part and display them

any ideas am working with c# vs 2开发者_StackOverflow中文版008 and .txt files


well, 4 equal parts can be done by taking string.length /4 and then taking substrings. you could then do a .find within each string.

alternately, you could take a look a regular expressions.

0

精彩评论

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