- 帖子
- 598
- 积分
- 690
- 技术
- 30
- 捐助
- 0
- 注册时间
- 2023-2-9
|
Set re = New regexp
re.pattern = "public class cs\n{.*?({.*}.*)*}"
re.multiline = True
re.ignorecase = True
cs = re.execute([yourc#code])(0)
If InStr(cs,"public string cd") <> -1 Then
MsgBox "cd is in cs"
End If
If InStr(cs,"public int abc") <> -1 Then
MsgBox "abc is in cs"
End If
成不成? |
|