weaver

Member

Blog Archive

Blog

Wayetender and Site Improvements 10 Comments

Waye worked hard tonight on a problem he certainly didn't even want to come close to tackling.. it sure as hell wasn't fun and he is very proud of his regex expression that he came up with to resolve the problem.  I do believe he spent 3 hours to write the following..

preg_replace("/<{$tag} (.*?){$attr}=[\\\"'].*?[\\\"'](.*?)>/i", '<' . $tag . ' \\1 \\2 >', $input);

Luckily, this can be expressed in more human terms to categorize the understanding of this eloquent piece of problem solving. As it might be said to the laymen;

Using hungarion notation and globalized regex variables, we are expressely managing the float operation of an nvarchar type identifier. I find that this np(x+1) type operand serves us best within the dynamic schema we have defined.

There ya go.. everyone understands now, right?
2007-08-15 01:26:22 | 472 Views

Comments

Wayetender at Aug 15, 2007.

Yep, that's in it in a nutshell.

Labec at Aug 15, 2007.

opensource ftw

Skydavo at Aug 15, 2007.

?????? waddahellishetalkingabout ?????? Normal humans like me who didn't understand a single thing he said can just hit "play CS:S" once again and join me on some of the spawnpoint servers ;-)

Raven at Aug 15, 2007.

I understand....that means "42" in our language doesn't it? :D

weaver at Aug 15, 2007.

For the clueless who will try to figure out Raven's response... see the following for wisdom and enlightenment. http://en.wikipedia.org/wiki/The_Answer_to_Life,_the_Universe,_and_Everything Also - to get there - go to GOOGLE.com - type '42' in search.. then hit 'Feeling lucky'. Have a lovely day.

TJ1adam12 at Aug 16, 2007.

I'm guessing that translates into my being able to have paragraphs now, lol.

weaver at Aug 16, 2007.

There ya go ;) Bright side of things.

Scro at Aug 17, 2007.

All I want to know is if it is patentable.

Alpha23 at Aug 17, 2007.

Is that the construction formula for the perfect cs:s player??? *confused look*

Wayetender at Aug 21, 2007.

On a sad note, that statement no longer lives on the Spawnpoint servers; but one of its descendants does. To help curb the depression, I'll give you this bit from a funny esoteric programming language (the name I will not mention): ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++ .>++.<<+++++++++++++++.>.+++.------.--------.>+.>. When run, it will print out "Hello World!" to the screen.

Leave a Comment

You must be logged in to comment