0
我越過以下消息錯誤「第2行中語句的意外結束」我看不到任何錯誤嗎?什麼是我做錯了..意外的聲明結束
Sub Main()
Dim regex As Regex = New Regex("\d+")
Dim match As Match = regex.Match("Dot 77 Perls")
If match.Success Then
MessageBox.Show(match.Value)
End If
End Sub
同樣的錯誤與此代碼的行8 – redobot
見上文編輯發現爲好,應該是'RegExp'不'Regex' - 我錯過了最初 –
你實際上是在VBA或Visual Studio寫這個? –