fork(1) download
  1. Imports System
  2. Imports System.Text.RegularExpressions
  3.  
  4.  
  5. Public Class Test
  6. Public Shared Sub Main()
  7. Dim input as String ="ASD~QW~DFGH~LOP~GGGH~123~SXC~QL~"
  8. Dim pattern as String =".*?~([^~]+?)~"
  9. Dim re as Regex = New Regex(pattern)
  10.  
  11. Dim mtch as match = re.Match(input)
  12. For Each grp as Group in mtch.Groups
  13. Console.Write("[{0}], {1}", grp.Value, grp.Captues.Count)
  14. Next
  15. Console.Writeline()
  16.  
  17.  
  18. End Sub
  19. End Class
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4.2 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.


/home/sVebzZ/prog.vb (13,56) : Error VBNC30456: 'Captues' is not a member of 'System.Text.RegularExpressions.Group'.
There were 1 errors and 0 warnings.
Compilation took 00:00:00.9497630
stdout
Standard output is empty