Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C# Regex Ex
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { static void EvalRegex(string pattern, string evalString) { Regex rg = new Regex(pattern); MatchCollection matches = rg.Matches(evalString); for (int count = 0; count < matches.Count; count++) { Console.WriteLine(matches[count].Value); } } public static void Main(string[] args) { EvalRegex(@"\d\d\D\d\d\D\d\d\d\d","aaaaadfadsss06-11-2015xxxxxxcdffafd"); } } }
Show compiler warnings
[
+
]
Show input
Compilation time: 0,2 sec, absolute running time: 0,17 sec, cpu time: 0,17 sec, average memory usage: 19 Mb, average nr of threads: 4, absolute service time: 0,39 sec
edit mode
|
history
06-11-2015