fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. Dim printfilePs As String = "printfile ps = ""Elopak Zufriedenheit After Sales.ps"";"
  6. Dim quote As Char = """"c
  7. Dim first As Int32 = printfilePs.IndexOf(quote)
  8. Dim last As Int32 = printfilePs.LastIndexOf(quote)
  9. Dim partBetweenQuotes As String = ""
  10. If first <> -1 AndAlso last > first Then
  11. Dim start As Int32 = first + 1
  12. Dim length As Int32 = printfilePs.Length - start - (printfilePs.Length - last)
  13. partBetweenQuotes = printfilePs.Substring(start, length)
  14. End If
  15. Console.WriteLine(partBetweenQuotes)
  16. End Sub
  17. End Class
Success #stdin #stdout 0.06s 13352KB
stdin
Standard input is empty
stdout
Elopak Zufriedenheit After Sales.ps