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 
d4
2
c 
d2
day2
int42
_
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
 
3VBScript 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-vbscript.php3?s=42%2043&2&11&13 >

<%@ LANGUAGE="VBSCRIPT" %>
<%
  Dim txt
  txt ="42 43"

  Dim re1
  re1 ="(.)"	'Any Single Character 1
  Dim re2
  re2 ="(.)"	'Any Single Character 2
  Dim re3
  re3 =".*?"	'Non-greedy match on filler
  Dim re4
  re4 ="(\d+)"	'Integer Number 1

  Dim r
  Set r = New RegExp
  r.Pattern = re1+re2+re3+re4
  r.IgnoreCase = True
  Dim m
  Set m = r.Execute(txt)
  If m.Item(0).SubMatches.Count > 0 Then
      Dim c1
      c1=m.Item(0).SubMatches.Item(0)
      Dim c2
      c2=m.Item(0).SubMatches.Item(1)
      Dim int1
      int1=m.Item(0).SubMatches.Item(2)
      Response.Write("("+Replace(c1,"<","&lt;")+")"+"("+Replace(c2,"<","&lt;")+")"+"("+Replace(int1,"<","&lt;")+")"+"")
  End If
%>

<!------->
<!-- To run this code:-->
<!------->
<!-- .Paste into text file using notepad into IIS Web Server wwwroot directory.-->
<!------->
<!-- .Or if using Microsoft's development environment use 'paste as html' if available.-->
<!------->
 
 
 
 
Feedback
:: 1.0.0.0Fri, 5 Sep 2014 07:38AM
::  Fri, 5 Sep 2014 09:20AM
::  Fri, 5 Sep 2014 10:27AM
::  Fri, 5 Sep 2014 03:09PM
:: excellentFri, 5 Sep 2014 03:09PM
:: Muchas gracias por publicar tu trabajo :DFri, 5 Sep 2014 03:37PM
Genesio:: too clever! :-)Fri, 5 Sep 2014 04:12PM
anon:: Are you all kidding me?! This thing is worthlessFri, 5 Sep 2014 05:07PM
:: It's fucking useful!Sat, 6 Sep 2014 05:11AM
Al:: EhhhhhhMon, 8 Sep 2014 03:48PM
ricikj:: ygdfZuciUBDcHvKoBMon, 8 Sep 2014 09:16PM
理漯彘 妈牝铕钼梓::  Tue, 9 Sep 2014 07:49AM
@::  Tue, 9 Sep 2014 10:50AM
Howl:: Awesome.Tue, 9 Sep 2014 06:19PM
wtbjkg:: FUapGOOsKGBdzBmDJbUTue, 9 Sep 2014 08:19PM
::  Wed, 10 Sep 2014 04:40AM
gfpucoclw:: GnlZsZhtESAzThu, 11 Sep 2014 05:21AM
What:: Happened Thu, 11 Sep 2014 09:32AM
in :: Chicago on this day?Thu, 11 Sep 2014 09:33AM
Thank you:: Thank youThu, 11 Sep 2014 09:34AM
Thank you:: Thank youThu, 11 Sep 2014 10:34AM
I:: Love herThu, 11 Sep 2014 10:34AM
I:: Love herThu, 11 Sep 2014 10:37AM
amil:: eman reh siThu, 11 Sep 2014 11:42AM
::  Thu, 11 Sep 2014 02:29PM
m:: wow this is sick!Thu, 11 Sep 2014 02:30PM
理漯彘::  Thu, 11 Sep 2014 06:51PM
:: +49 (9879) 789568658Thu, 11 Sep 2014 07:25PM
it's me:: lame regex generator. worthlessFri, 12 Sep 2014 01:08AM
:: 2321dsfaasFri, 12 Sep 2014 03:13AM
swagoverflow:: simply the bestFri, 12 Sep 2014 07:01AM
理漯彘 妈牝铕钼梓::  Fri, 12 Sep 2014 09:40AM
www.baidu.com/link?url=::  Fri, 12 Sep 2014 03:15PM
www.baidu.com/link?url=::  Fri, 12 Sep 2014 03:17PM
www.baidu.com/link?url=::  Fri, 12 Sep 2014 03:18PM
中国:: 不错,到些一游!Sat, 13 Sep 2014 07:44AM
中国:: 不错,到些一游!Sat, 13 Sep 2014 07:44AM
lqlyybctfn:: sVGDWVUHeZJQAcRvHPSat, 13 Sep 2014 09:55AM
::  Sat, 13 Sep 2014 08:29PM
dmitry:: that a cool tool thanks :)!Sat, 13 Sep 2014 09:48PM
:: ");alert("fuck you");Sun, 14 Sep 2014 02:35AM
理漯彘 妈牝铕钼梓::  Sun, 14 Sep 2014 03:30PM
理漯彘 妈牝铕钼梓::  Sun, 14 Sep 2014 07:31PM
oi:: javascript:alert("fix me");Mon, 15 Sep 2014 10:50AM
 
  home     faq              ©2006 mark james ennis