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
Códigos dum boi olhando para um palácio
CAI - Visual Basic - Libreria de funciones
Poem of the day from 'Selected Poems of Rumi (Dover Thrift Edition)'
No Fear Shakespeare sonnet of the day
pgcd def
LinkedList
valor maximo entre 3 numeros
VB checking whether a date is between 2 dates
falhanço épico
Arraylist Order by string array or comma delitmited string in vb.NET