fork(19) download
  1. Imports System
  2. Imports System.Text.RegularExpressions
  3.  
  4. Public Class Test
  5. Public Shared Sub Main()
  6. Dim my_rx As Regex = New Regex("\d{2}-\p{L}{4}\d{2}\p{L}{2}\d{2}")
  7. Dim my_result As Match = my_rx.Match("Dave XXYZABC 01-LYJX01PC01")
  8. If my_result.Success Then
  9. Console.WriteLine(my_result)
  10. End If
  11. End Sub
  12. End Class
Success #stdin #stdout 0.11s 25360KB
stdin
Standard input is empty
stdout
01-LYJX01PC01