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
int42
_
c _
ws_
4
c 4
d4
3
c 3
d3
day3
int43
< Source String
What to click?  extract any integer in this position
extract this integer (2006) in this position
 
3Perl 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 
 
#!/usr/bin/perl

# URL that generated this code:
# http://txt2re.com/index.php3?s=42%2043&2&11&-13&-9999

$txt='42 43';

$re1='()';	#  1
$re2='(4)';	# Any Single Character 1
$re3='(.)';	# Any Single Character 2
$re4='.*?';	# Non-greedy match on filler
$re5='(\\d+)';	# Integer Number 1

$re=$re1.$re2.$re3.$re4.$re5;
if ($txt =~ m/$re/is)
{
    $1=$1;
    $c1=$2;
    $c2=$3;
    $int1=$4;
    print "($1) ($c1) ($c2) ($int1) \n";
}

#-----
# Paste the code into a new perl file. Then in Unix:
# $ perl x.pl 
#-----
 
 
 
 
Feedback
:: alert(“Vulnerable Site”); Sat, 16 May 2015 04:21PM
:: alert(“Vulnerable Site”); Sat, 16 May 2015 04:21PM
::  Sat, 16 May 2015 05:27PM
::  Sun, 17 May 2015 05:53AM
:: ÔƲÆ×Ê¡¾2014¡¿68ºÅSun, 17 May 2015 05:53AM
:: alert("test");Sun, 17 May 2015 11:59PM
::  Mon, 18 May 2015 01:42AM
::  Mon, 18 May 2015 01:42AM
::  Mon, 18 May 2015 05:55AM
ESGI:: Merci tu es fabuleux.Mon, 18 May 2015 01:35PM
:: Thanks for this!Mon, 18 May 2015 03:26PM
:: alert("stop doing alerts")Tue, 19 May 2015 05:24AM
::  Tue, 19 May 2015 06:51AM
boost:: amazingTue, 19 May 2015 08:14AM
::  Tue, 19 May 2015 11:09AM
:: nice tool !Tue, 19 May 2015 12:09PM
:: asdTue, 19 May 2015 01:49PM
:: Magyar vagyok ments ki innen.Tue, 19 May 2015 01:50PM
Chuck::  Tue, 19 May 2015 01:50PM
::  Tue, 19 May 2015 02:10PM
:: sWed, 20 May 2015 06:49AM
:: alert(“Vulnerable Site”); Wed, 20 May 2015 08:48AM
:: hey no alert anymore !! nice !Wed, 20 May 2015 08:48AM
::  Wed, 20 May 2015 09:21AM
::  Wed, 20 May 2015 09:48AM
....:: yooloWed, 20 May 2015 01:18PM
::  Wed, 20 May 2015 01:18PM
::  Wed, 20 May 2015 01:18PM
::  Wed, 20 May 2015 01:18PM
Àíäðåé Âèêòîðîâè÷::  Wed, 20 May 2015 04:41PM
:: alert(“Vulnerable Site”);Thu, 21 May 2015 04:54AM
::  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
 
  home     faq              ©2006 mark james ennis