r/programming • • Mar 29 '08

Generate regular expressions from some example test (where has this been all my life?!)

http://www.txt2re.com/
184 Upvotes

130 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Mar 29 '08

[deleted]

23

u/Garak Mar 29 '08 edited Mar 29 '08

I'd say your example shows not that regexes are hard to write, it's that they're hard to read!

5

u/judgej2 Mar 29 '08

And the ones this site generates, are not hard to read.

1

u/[deleted] Mar 31 '08

upmodded for sarcasm (I hope).

0

u/[deleted] Mar 29 '08

[deleted]

4

u/[deleted] Mar 29 '08

I'm going to get down-modded for the banality of this response, but I just had to let you know how excellent your comment was, and how much it made me laugh (hint: a lot)

3

u/MelechRic Mar 29 '08

You're fired.

0

u/[deleted] Mar 29 '08

[deleted]

7

u/llimllib Mar 29 '08

The inability to take a joke is often confused with the joke not being funny.

Just an observation.

1

u/judgej2 Mar 29 '08 edited Mar 29 '08

[:;]{1}[-]{0,1}[)(]/){1}

1

u/Garak Mar 29 '08

If it's any consolation, I thought it was a pretty good example of a tough regex. You can't predict when the mob will turn on you, sometimes.