Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

regular expresions

Name: Anonymous 2008-02-02 1:40

wtf prog

Name: Anonymous 2008-02-02 1:42

What about them?

Name: Anonymous 2008-02-02 1:49

they're freaking obnoxious, that's what.

Name: Anonymous 2008-02-02 1:53

Only if you're a complete fucktard.

Name: Anonymous 2008-02-02 1:58

i guess that makes me a fucktard then.

Name: Anonymous 2008-02-02 1:59

I guess so.

Name: Anonymous 2008-02-02 2:10

Yeah, I don't get them either. It's like someone decided one day, oh hey, I'm going to build this thing which does pattern matching, and I'll make for it the most assinine syntax for it man has ever seen. It makes brainfuck look like English prose. Fuck regex

Name: Anonymous 2008-02-02 2:22

s/^([^,]+)(.).*([^ ]+) ([^ ]+)$/\4\2 \3 \1/

Name: Anonymous 2008-02-02 2:36

>>7
wtf, they're fucking simple as shit to understand. take a fucking course on computational theory and beat it fucking into your brain until you understand. how the fuck do you expect to write an ansi-compliant C compiler without even understanding regular expressions?

seriously. wtf.

Name: Anonymous 2008-02-02 3:17

>>8
Valid regex code

Name: Anonymous 2008-02-02 3:20

>>8
If you know there's always going to be a comma after the second atom, why not just use a comma as the third atom? That would reduce the number of backreferences needed. And if you don't know that, then this pattern has very different behavior in the comma and no-comma cases. The second atom is probably going to be too greedy without a comma (guessing, based on the .* in the middle; I don't know what application this was written for).

Name: Anonymous 2008-02-02 3:22

>>10
You need to turn in your programmer's license until you take a remedial course. That regex is fucking easy to mentally parse (though not exactly well-written).

Name: Anonymous 2008-02-02 3:27

>>11
It was to transform >>7, sillybuns.

Name: Anonymous 2008-02-02 3:35

>>13
regex, Fuck Yeah

Name: Anonymous 2008-02-02 3:58

[spoiler]
Let's talk about regex baby
Let's talk about you and me
Let's talk about all the good things
And the bad things that may be
Let's talk about regex
[/spoiler]

Name: Anonymous 2008-02-02 7:41

>>15

BBCODE FAILURE

Name: Anonymous 2009-02-25 7:10


Second item in a   GREAT COUNTRY OF   FREEDOM AND BROTHERHOOD   SHANGHAI CHINA ONE.

Name: Anonymous 2011-02-03 3:34

Don't change these.
Name: Email:
Entire Thread Thread List