Welcome Guest [Log In] [Register]
Few Good Men was an Xbox Live gaming clan and now is a community of friends.

We have built our community on friendship and respect, and we ask that you abide by those simple guidelines, along with these rules:

No illegal material
No naked pics or anything of that nature
No board invasions, no planing invasions
No harassment or discrimination
Be respectful

We hope that you enjoy your visit.

You're currently viewing our forum as a guest. You may register here:

Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
This is one of the most horrifying things ever
Topic Started: Nov 7 2012, 03:04 PM (287 Views)
Resulli
Member Avatar
Zooba.
http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html

For those who don't understand what this is, this is a regular expression. In programming, a regex is a piece of code for finding patterns and combinations of patterns within a given string (string being any characters within quotation marks that are basically text that can be printed out but is not explicitly read as code)

A string can be "Hello, how are you?" or "144bw9b" or even

"for text in text_messages:
i = 1
print i++"

which is code that will not be executed because it's merely going to be read by the interpreter as a sentence to be shown rather than code to be used.

Now imagine you have a string that is tens of thousands of characters long and you need a very specific pattern out of it like say "first_name:"

You would use regex's to grab that.

Now even if most of this went over your head you still might be able to grasp just why the link at the top of this post is so horrifying. If you wanna know more, look up the basic syntax of regex's and see if you can figure out what each bit of it means.

Regex's, when used right, are very, very useful. But when they are abused, like in the link, they are some of the scariest parts of programming.
Posted Image
Member Offline View Profile Quote Post Goto Top
 
Sun Demon
Member Avatar
Milk's Favorite Cookie
One of the most horrifying things ever was when they were saying Shia Labeouf was going to be the main character of Indiana Jones 5.

I don't hate the kid, but an Indy movie without INDIANA JONES?!
Posted Image
Posted Image

Posted Image
Member Offline View Profile Quote Post Goto Top
 
Deleted User
Deleted User

Sun Demon
Nov 7 2012, 04:20 PM
One of the most horrifying things ever was when they were saying Shia Labeouf was going to be the main character of Indiana Jones 5.

I don't hate the kid, but an Indy movie without INDIANA JONES?!
I laughed
Quote Post Goto Top
 
Sun Demon
Member Avatar
Milk's Favorite Cookie
I is sorry Res, I have had to derail so many political threads today, it's like second nature now! ^^;
Posted Image
Posted Image

Posted Image
Member Offline View Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · General Discussion · Next Topic »
Add Reply

FGM: NOW IN TECHNICOLORâ„¢
Theme Designed by McKee91