txt 2 re
        headache relief for programmers :: regular expression generator
 
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
9
c 9
d9
int09
:
c :
M
c M
wM
a
c a
wa
y
c y
wy
wordMay
monthMay
:
c :
2
c 2
d2
0
c 0
d0
0
c 0
d0
8
c 8
d8
int2008
year2008
ddmmmyyyy09:May:2008
_
c _
ws_
"
c "
T
c T
wT
h
c h
wh
i
c i
wi
s
c s
ws
wordThis
_
c _
ws_
i
c i
wi
s
c s
ws
wordis
_
c _
ws_
a
c a
wa
n
c n
wn
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
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
Aikiden:: Great learning tool! Thanks! Mon, 21 Apr 2008 07:28PM
Johan (Sweden):: Thanks! Saved us several hours of work,Mon, 21 Apr 2008 08:22PM
dan:: You're Magic !!!Tue, 22 Apr 2008 07:58PM
merv:: it has a few bugs with respect to special characters like \/(){}[]Wed, 23 Apr 2008 09:19PM
Mark:: Hi Merv, I tried a few tests (see url in next comment) which seemed to work, Can you give me a hint on the probs you saw? Wed, 23 Apr 2008 09:39PM
Mark:: http://txt2re.com/index-java.php3?s=\/(){}[]&-4&-10&-7&-8&6Wed, 23 Apr 2008 09:39PM
sha0:: greatThu, 24 Apr 2008 09:09PM
nice:: alert('very nice site!!!');Sat, 26 Apr 2008 01:32AM
denya:: чмоке всем в этом чатеMon, 28 Apr 2008 11:22PM
parixit:: thank you so much for this!!!!!!Thu, 1 May 2008 10:21PM
Evan Walsh:: Thank you so much! This is awesome!Sat, 3 May 2008 12:09AM
svaithianatha:: Wikipedia page, and it is relevant Tue, 6 May 2008 04:56AM
svaithianatha:: oops!! was testing autohotkey and made a lil booboo... cool tool though...wdTue, 6 May 2008 04:58AM
Pat:: Very nice and usefull tool! An option to use split fonction instead of matchall could be very handy :)Thu, 8 May 2008 02:03PM
Fernando:: Thank you! A question: why not use raw strings in Python?Thu, 8 May 2008 02:14PM
srikanth:: very usefulThu, 8 May 2008 03:41PM
Julio:: Menuda chorrada!!!Thu, 8 May 2008 03:42PM
cup:: i likeThu, 8 May 2008 04:03PM
pramod:: kewlThu, 8 May 2008 04:32PM
barnsley_uk:: consider yourself bookmarked!Thu, 8 May 2008 05:07PM
Bklyn:: The generated code is trash. Amateur programmers can't write regexps? WTF?!?!Thu, 8 May 2008 05:35PM
Dan:: Please have my babies.Thu, 8 May 2008 06:07PM
Bklyn:: Sorry about my last comment. I'm gay so I get bitchy sometimes. Good work!Thu, 8 May 2008 06:08PM
granpa:: Older than internet?Thu, 8 May 2008 06:10PM
noodle:: very cool, programming this would make my head explode faster than just writing all the regexs i needThu, 8 May 2008 06:26PM
onthetech:: Awesome site !!! Thank you for making this public :)Thu, 8 May 2008 06:41PM
test:: alert('very cool!!!');Thu, 8 May 2008 06:44PM
:: this is neatThu, 8 May 2008 06:46PM
test:: yeah indeedThu, 8 May 2008 06:46PM
j:: Very nice. Great work!Thu, 8 May 2008 06:47PM
habs:: this is freakin awesome!! no more dodgy vis studio regex for me!Thu, 8 May 2008 06:59PM
knoopx:: i find easier to write regular expressions than using this tool xDThu, 8 May 2008 07:11PM
leo:: read man perlre. the automaticaly generated regexp are kind of uglyThu, 8 May 2008 07:15PM
jdt:: Your builtin email regex doesn't accept (yet should) the '+' char in the local-part of an address.Thu, 8 May 2008 07:16PM
gr0wl:: Bug: "20080508-1116" -> I can't match the "dash" character. It forces it to match as part of the following integer.Thu, 8 May 2008 07:16PM
ace:: Sweet Mary Mother of Pearl!!!Thu, 8 May 2008 07:25PM
Anon:: Down with Mac OS!Thu, 8 May 2008 09:27PM
insult:: Your mother was a hamster and your father smelt of elderberry.Fri, 9 May 2008 12:26AM
happyhippy:: shazbot!Fri, 9 May 2008 01:06AM
smartalec:: alert('sweet')Fri, 9 May 2008 01:49AM
:: thanks!Fri, 9 May 2008 04:21AM
Proxmiff:: Thanx bro!Fri, 9 May 2008 09:36AM
appaulmac:: love the favicon :)Fri, 9 May 2008 09:39AM
bartman:: Support for Lua?Fri, 9 May 2008 01:26PM
 
  home     faq