什么是VB的限定符
答案:1 悬赏:50 手机版
解决时间 2021-03-06 19:08
- 提问者网友:川水往事
- 2021-03-06 14:26
什么是VB的限定符
最佳答案
- 五星知识达人网友:神的生死簿
- 2021-03-06 14:53
限定符指定在输入中必须存在字符、组或字符类的多少个实例才能找到匹配项
Dim pattern As String = "\b91*9*\b"
Dim input As String = "99 95 919 929 9119 9219 999 9919 91119"
For Each match As Match In Regex.Matches(input, pattern)
Console.WriteLine("'{0}' found at position {1}.", match.Value, match.Index)
Next
Dim pattern As String = "\b91*9*\b"
Dim input As String = "99 95 919 929 9119 9219 999 9919 91119"
For Each match As Match In Regex.Matches(input, pattern)
Console.WriteLine("'{0}' found at position {1}.", match.Value, match.Index)
Next
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯