fork(1) download
  1. Imports System
  2.  
  3. Public Class Test
  4.  
  5. Private Shared Function textmoves(mytext As String, indexchar As String)
  6. Dim Index As Integer = mytext.IndexOf(indexchar)
  7. Return Index
  8. End Function
  9. Private Shared Sub Splittext()
  10. Dim text As String = "FPO100200%10&FORD*"
  11. Dim a = text.Substring(0, textmoves(text, "%"))
  12. Console.WriteLine(a)
  13. Dim b = text.Substring(textmoves(text, "%")+1, textmoves(text, "&")-textmoves(text, "%")-1)
  14. Console.WriteLine(b)
  15. End Sub
  16.  
  17.  
  18. Public Shared Sub Main()
  19. Splittext()
  20. End Sub
  21. End Class
Success #stdin #stdout 0.11s 25032KB
stdin
Standard input is empty
stdout
FPO100200
10