Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Extract values from square brackets
'Rextester.Program.Main is the entry point for your code. Don't change it. 'Compiler version 11.0.50709.17929 for Microsoft (R) .NET Framework 4.5 Imports System Imports System.Collections.Generic Imports System.Linq Imports System.Text.RegularExpressions Namespace Rextester Public Module Program Public Sub Main(args() As string) 'Your code goes here Dim input As String = "Moscow [2] (3344), Tokyo [22], Warshava [111]. London[333]" Dim pattern As String = "\[(.*?[0-9])\]" Dim m As Match = Regex.Match(input, pattern) Do While m.Success Console.WriteLine("'{0}' found at position {1}", m.Value, m.Index) m = m.NextMatch() Loop Console.WriteLine("Hello, world!") End Sub End Module End Namespace
run
|
edit
|
history
|
help
0
VB checking whether a date is between 2 dates
CD.SYS
Range List for VisualBasic.NET
HafizTutoring.csproj
Rounding behaviours
No fear Shakespeare - sonnet of the day
exercicio 3
I know all the veebeez!
Visual-Basic
DateTime.ParseExact