如何查找字符串的第N次出现 [英] How to Find Nth Occurance of a string
本文介绍了如何查找字符串的第N次出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个字符串如下.
今天我想见谭先生 t er MicSHot"
在上面的字符串中,加粗的t是搅拌中的第7个出现的"t"字符.
现在像这样,如何在字符串中第N次出现字符.
请告诉我.
I have a string as follows.
"Today I want to Meet Mr.Tanter MicSHot"
In the above string bolded t is 7th occurance "t" char in the stirng.
Now Like that, How to Nth Occurance of a charecter in a string.
Please tell me.
推荐答案
这是第一个Google搜索链接- ^ ]
学习使用Google可以节省很多时间!
This is the first Google search link - C#: Find Nth occurrence of a character in a string[^]
Learn using Google and it will save you a lot of time!
这篇关于如何查找字符串的第N次出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文