txt 2 re
knowing is obsolete :: regular expression generator (perl php python java javascript coldfusion c c++ ruby vb vbscript j# c# c++.net vb.net)
 
 
 
Enter the string that you want to use a regular expression on:
1
   
 
Select the elements that you want to extract to run regular expression generator:
2
4
c 4
d4
2
c 2
d2
day2
int
_
c _
ws
4
c 4
d4
3
c 3
d3
day3
int
< Source String
What to click?  extract any integer in this position
extract this integer (2006) in this position
 
3Visual Basic regular expression program that extracts the selected elements from the entered string:
Perl PHP Python Java Javascript ColdFusion C C++ Ruby VB VBScript J#.net C#.net C++.net [VB.net] 
 
' URL that generated this code:
' http://txt2re.com/index-vb.php3?s=42%2043&2&11&5&1

Imports System.Text.RegularExpressions
Module Module1

  Sub Main
    Dim txt As String ="42 43"

    Dim re1 As String="(\d+)"	'Integer Number 1
    Dim re2 As String="(.)"	'Any Single Character 1
    Dim re3 As String="(\s+)"	'White Space 1
    Dim re4 As String="(\d+)"	'Integer Number 2

    Dim r As Regex = new Regex(re1+re2+re3+re4,RegexOptions.IgnoreCase Or RegexOptions.Singleline)
    Dim m As Match = r.Match(txt)
    If (m.Success) Then
        Dim int1=m.Groups(1)
        Dim c1=m.Groups(2)
        Dim ws1=m.Groups(3)
        Dim int2=m.Groups(4)
        Console.WriteLine("("+int1.ToString()+")"+"("+c1.ToString()+")"+"("+ws1.ToString()+")"+"("+int2.ToString()+")"+"")
    End If
    Console.ReadLine()
  End Sub
End Module

'-----
' Paste the code into a new Console Application
'-----
 
 
 
 
Feedback
::  Thu, 21 May 2015 10:16AM
:: alert(ôVulnerable Siteö);Thu, 21 May 2015 10:45AM
::  Thu, 21 May 2015 02:37PM
::  Thu, 21 May 2015 02:49PM
:: ===============3Thu, 21 May 2015 02:49PM
::  Thu, 21 May 2015 02:50PM
::  Thu, 21 May 2015 04:10PM
::  Thu, 21 May 2015 04:11PM
Jesus:: 8============DThu, 21 May 2015 07:36PM
::  Thu, 21 May 2015 09:27PM
::  Thu, 21 May 2015 11:35PM
::  Fri, 22 May 2015 02:47AM
::  Fri, 22 May 2015 03:09AM
:::: alert("Script ran!");Fri, 22 May 2015 11:28AM
Al Capone:: I Was HereFri, 22 May 2015 12:05PM
:: alert("Hello")Fri, 22 May 2015 01:46PM
:: alert("Script ran!");Fri, 22 May 2015 02:23PM
::  Fri, 22 May 2015 02:31PM
::  Fri, 22 May 2015 04:13PM
:: Nice :-) Where to donate the million? Is this open source? :)Fri, 22 May 2015 04:22PM
323:: weweFri, 22 May 2015 06:51PM
::  Fri, 22 May 2015 09:39PM
:: Is the source availableFri, 22 May 2015 11:59PM
::  Sat, 23 May 2015 10:18PM
└Ýń­ňÚ ┬Ŕŕ˛ţ­ţÔŔ¸::  Sat, 23 May 2015 11:19PM
d:: dSun, 24 May 2015 11:56AM
::  Sun, 24 May 2015 02:48PM
:: alert(ôVulnerable Siteö);Sun, 24 May 2015 02:48PM
::  Mon, 25 May 2015 09:48AM
::  Mon, 25 May 2015 10:05AM
, 'AAAksBAAEAAAacbAAN'::  Tue, 26 May 2015 03:40AM
::  Tue, 26 May 2015 07:19AM
::  Tue, 26 May 2015 09:21AM
::  Tue, 26 May 2015 10:00AM
a:: alert(ôVulnerable Siteö);Tue, 26 May 2015 10:01AM
::  Tue, 26 May 2015 02:54PM
::  Tue, 26 May 2015 06:08PM
swag:: alert("swag")Wed, 27 May 2015 01:01AM
:: alert("not alerting")Wed, 27 May 2015 05:38AM
::  Wed, 27 May 2015 07:53AM
alert(ôVulnerable Siteö);:: alert(ôVulnerable Siteö);Wed, 27 May 2015 07:53AM
:: fafdsaWed, 27 May 2015 08:10AM
::  Wed, 27 May 2015 08:33AM
::  Wed, 27 May 2015 01:52PM
 
  home     faq              ©2006 mark james ennis