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
Exercício de variáveis 1
19 11 2019 exercicio 2 equaçao
exercicio A
Visual-Basic
Selected Poetry of Rumi ~ doy mod 119
ex1 ficha nº2
Rounding behaviours
Códigos dum boi olhando para um palácio
VB.NET: Functions aren't required to return a value
Exercicio 1