txt 2 re
        headache relief for programmers :: 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
0
c 0
d0
4
c 4
d4
int04
:
c :
J
c J
wJ
u
c u
wu
l
c l
wl
varJul
wordJul
monthJul
:
c :
2
c 2
d2
0
c 0
d0
0
c 0
d0
8
c 8
d8
int2008
year2008
ddmmmyyyy04:Jul:2008
_
c _
ws_
"
c "
T
c T
wT
h
c h
wh
i
c i
wi
s
c s
ws
varThis
wordThis
_
c _
ws_
i
c i
wi
s
c s
ws
varis
wordis
_
c _
ws_
a
c a
wa
n
c n
wn
varan
wordan
_
c _
ws_
E
c E
wE
x
c x
wx
a
c a
wa
m
c m
wm
p
c p
wp
l
c l
wl
e
c e
we
varExample
wordExample
!
c !
"
c "
string"This_is_an_Example!"
< Source String
 
What to click?  match against any integer in this position
match against this integer (2006) in this position
 
 
 
 
Feedback
TiTs:: Perfect ThanksSat, 31 May 2008 02:41PM
Mike:: What if the expression is complex and the user has several expression to match? Althought this would be more complicated, this would be interesting.Sun, 1 Jun 2008 05:12PM
Mike:: To clarify my earlier comment : replace "has several expression to match" by "has several strings to supply in step 1".Sun, 1 Jun 2008 05:14PM
Mark:: Hi Mike - you can click on any number of expressions - the only restriction is that one cannot be inside the other.Tue, 3 Jun 2008 09:15AM
take:: nice!Tue, 3 Jun 2008 03:50PM
Anon:: **effusive thanks**Thu, 5 Jun 2008 05:33AM
:: ss01 pts/0 10.100.28.24 Mon Jun 2 22:47 - 23:05 (00:17)Thu, 5 Jun 2008 12:12PM
Anon:: Please make it so that you can add large blocks of text to box (1) and be able to see it all. Thanks.Thu, 5 Jun 2008 05:35PM
:: This is very useful. Thu, 5 Jun 2008 10:22PM
Réda:: thank you a lot, you saved me lot of time !Fri, 6 Jun 2008 09:08PM
:: you the great coder! thanksFri, 6 Jun 2008 10:21PM
Inquisito:: Bookmarked ! (But i miss a Condition button :) )Sat, 7 Jun 2008 10:16AM
:: tabulators get lost when they're resend in the urlSat, 7 Jun 2008 06:52PM
Neilossi:: Thanks a Thousand dude!Wed, 11 Jun 2008 10:57AM
Wingfire:: Ultra cool :o)Wed, 11 Jun 2008 04:00PM
Jobelobes:: sweet, nice generatorThu, 12 Jun 2008 02:25PM
MIMI:: matching an ip address like: 456.123.123.123 in php code gives a positive match but IP adresses cant go higher than 255 as you knowSun, 15 Jun 2008 03:48PM
Mark:: Hi Mimi - this ip address doesn't match! The ints searched for in the ipaddress pattern are 25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?Sun, 15 Jun 2008 09:08PM
:: Loving thisMon, 16 Jun 2008 02:53PM
MIMI:: yes it matches 56.123.123.123 but thats how regex works...Mon, 16 Jun 2008 04:35PM
shukra:: many thanksTue, 17 Jun 2008 06:42AM
dpmott:: A "float" type might help clean things up, i.e. \d+\.\d{2} for a number generated by a "%.2f" sprintf format string.Tue, 17 Jun 2008 03:17PM
Mark:: Hi dpmott - there is already a floating point pattern - eg txt2re.com/index.php3?s=3.14&submit=Show+MatchesWed, 18 Jun 2008 09:26AM
svenheinemann:: a god-like tool, thx a lotWed, 18 Jun 2008 10:05AM
mimi:: how long did you take to create this whole regex system? and for free?Wed, 18 Jun 2008 11:55PM
Neil:: finally someone has brains woop great systemThu, 19 Jun 2008 04:18PM
Naim:: Its MindFreak☺☻♥♥♥♥Thu, 19 Jun 2008 11:47PM
Nick:: Oh my god. The best tool ever invented 0.0. Thank you so much!!!!!!Fri, 20 Jun 2008 06:25AM
jmain:: Thanks very much, you got me out of a jamFri, 20 Jun 2008 01:15PM
VelcroMan:: Bookmarked! Great tool =DSun, 22 Jun 2008 09:01AM
McB:: Completely awesome. This tool has made my time at work so much easier.Sun, 22 Jun 2008 11:44AM
selven:: marvelousMon, 23 Jun 2008 10:32AM
Igor:: Thank You!Wed, 25 Jun 2008 06:00PM
micha:: how can i create multiples * and why cant i see the regexp in one lineThu, 26 Jun 2008 10:22AM
Mark:: HI Micha - I'm not sure what you mean by 'multiple *'. On the 2nd point - you can't see the regexp on one line because it would be completely indecipherable!Fri, 27 Jun 2008 11:02AM
Dendrite:: Thx... It helped me a lot and your generator is very nice...Sun, 29 Jun 2008 11:24PM
Iltsjdny:: jHwhBNRQcFKnUdvSLdZTue, 1 Jul 2008 11:23AM
Uwdwyaqf:: KIAqZirWYEUyWIZLSLKTue, 1 Jul 2008 03:48PM
ericw:: Ver y very helpful, thanks so much. Wed, 2 Jul 2008 07:47PM
Nxtobhox:: glPnwIAkFPMYUTTjXKcThu, 3 Jul 2008 04:07AM
Redjedmq:: oEMMIsVBIYovLThu, 3 Jul 2008 05:21AM
Asymptote:: Incredible! This helped me write a script in 15 minutes that could have taken a few hours.Thu, 3 Jul 2008 03:07PM
bpmelge:: WtPvvBEykGZCVjJslFri, 4 Jul 2008 01:38AM
jzmgjdsnt:: ItBLggHgWFri, 4 Jul 2008 06:38AM
 
  home     faq