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 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
 
3C++.net 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-c++dotnet.php3?s=42%2043&13

#include "stdafx.h"
using namespace System;
using namespace System::Text::RegularExpressions;

int main()
{
  String^ txt="42 43";

  String^ re1="(.)";	// Any Single Character 1

  Regex^ r = gcnew Regex(re1,RegexOptions::IgnoreCase|RegexOptions::Singleline);
  Match^ m = r->Match(txt);
  if (m->Success)
  {
      String^ c1=m->Groups[1]->Captures[0]->ToString();
      Console::Write("("+c1->ToString()+")"+"\n");
  }
  Console::ReadLine();
}

//-----
// Paste the code into a new Console Application
//-----
 
 
 
 
Feedback
::  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
::  alert(“Vulnerable Site”)Wed, 27 May 2015 04:07PM
:: alert(“Vulnerable Site”);Wed, 27 May 2015 04:07PM
:: alert("omg lol i am major haxor i can use js insertion lol!!1!");Wed, 27 May 2015 04:43PM
::  Wed, 27 May 2015 04:53PM
::  Wed, 27 May 2015 04:53PM
::  Wed, 27 May 2015 04:53PM
::  Wed, 27 May 2015 04:53PM
::  Wed, 27 May 2015 04:53PM
::  Wed, 27 May 2015 04:53PM
::  Wed, 27 May 2015 04:53PM
::  Wed, 27 May 2015 04:53PM
::  Wed, 27 May 2015 04:53PM
::  Wed, 27 May 2015 04:53PM
::  Wed, 27 May 2015 04:53PM
::  Wed, 27 May 2015 04:53PM
::  Wed, 27 May 2015 04:53PM
::  Wed, 27 May 2015 04:53PM
::  Wed, 27 May 2015 04:54PM
::  Wed, 27 May 2015 04:54PM
::  Wed, 27 May 2015 04:54PM
::  Wed, 27 May 2015 04:54PM
::  Wed, 27 May 2015 04:54PM
::  Wed, 27 May 2015 04:54PM
::  Wed, 27 May 2015 04:54PM
::  Wed, 27 May 2015 04:54PM
::  Wed, 27 May 2015 04:54PM
::  Wed, 27 May 2015 04:54PM
::  Wed, 27 May 2015 04:54PM
::  Wed, 27 May 2015 04:54PM
::  Wed, 27 May 2015 04:54PM
::  Wed, 27 May 2015 04:54PM
 
  home     faq              ©2006 mark james ennis