zomg regex

This is probably the most complicated thing I’ve ever had to work out in my entire life:

/^MK([1-9]|1[0-5]|17|19|77) [0-9]{1,2}[A-Z]{1,2}$/i


32 comments on “zomg regex”

  1. Mike Haddad

    The hell is that?

    Comment added: July 22nd, 08 @ 8:40 pm
  2. Lydia

    Hey Jem.
    You probably won’t give this much thought, but one of your previous pant award receivers had her website hacked (it was Kate, I believe).

    The website’s homepage now looks somewhat demonic, and Kate’s visitors are all freaking out and blogging about it.

    ‘Pretty insane, if you ask me.

    Comment added: July 22nd, 08 @ 8:54 pm
  3. Sarah

    Wut?

    Comment added: July 22nd, 08 @ 8:58 pm
  4. Stephanie

    dewd. that looks so fun.

    Comment added: July 22nd, 08 @ 9:05 pm
  5. Skye

    O_O

    Uhm.

    Can’t help you there *hugs*

    Comment added: July 22nd, 08 @ 9:18 pm
  6. Kaytlin

    Meep.
    I guess that makes me a complete loser for not even having a guess what that even is, apart from it having something to do with coding. Good luck ^^

    Comment added: July 22nd, 08 @ 9:41 pm
  7. Dave

    umm…65. yeah, 65.

    :/

    Comment added: July 22nd, 08 @ 10:36 pm
  8. Aaron

    Uhm… lol?

    Comment added: July 22nd, 08 @ 10:52 pm
  9. Arwen

    Uh, what?

    Comment added: July 23rd, 08 @ 12:13 am
  10. Jabed

    [quote]Hey Jem.
    You probably won’t give this much thought, but one of your previous pant award receivers had her website hacked (it was Kate, I believe).[/quote]

    Yeah I just checked her site out, shame really, I kinda liked the site and she had some nice colouring tutorials. Maybe you could help her out Jem since you are a PHP ninja :)

    Good luck with whatever that coding jargon/problem/error that is.

    Comment added: July 23rd, 08 @ 12:20 am
  11. Bubs

    What is the regex for? You know I hate them :P

    Comment added: July 23rd, 08 @ 1:23 am
  12. Niki

    That looks like a new kind of 1337 talk.

    And that G3R1L1M dude might hax0r us all. Zomg.

    Comment added: July 23rd, 08 @ 3:08 am
  13. Vanesa

    I have no idea what that is. Honestly.

    “The website’s homepage now looks somewhat demonic, and Kate’s visitors are all freaking out and blogging about it.”

    Oh man! I just blogged about some guy in a blue shirt, and everyone else’s is blogging about the hack? I’m so lame. :(

    Comment added: July 23rd, 08 @ 3:45 am
  14. Shannon

    I love regular expressions. But my rusty knowledge is making me unsure. D:

    Comment added: July 23rd, 08 @ 3:51 am
  15. Mumblies

    /^MK([1-9]|1[0-5]|17|19|77) [0-9]{1,2}[A-Z]{1,2}$/i? Oh yes, of course….Hmmm why does this whooshing sound go off in my head? Beats me Jem

    Comment added: July 23rd, 08 @ 8:30 am
  16. Carly

    Pi. The answer is Pi.

    I know this, because Pie is the solution to everything, and in this case, a mathematical/program issue, pi must be the solution! Honest!

    e.g. Mathematical pi vs steak and kidney pie. You can see my logic.

    Comment added: July 23rd, 08 @ 10:00 am
  17. Carly

    re: the hacking of outspoken kate. Usually people get hacked for using unsecured, unstable and out of date scripts, having passwords that are easy to guess or giving out their information on-line. There might be other reasons too, those are the only I know…

    I suggest that Kate re uploads everything, and as Jem is always very quick to point out - make sure you are using stable, up-to-date scripts to run your site….

    Comment added: July 23rd, 08 @ 10:04 am
  18. Vera

    *goes cross-eyed* I tried… but then I decided that I can always google it :P Then again… since my router at home is pretty much dead I might… NAAAAAAAAAAH! I have some 5 chicklits to catch up with.

    Well, good luck! :-)

    Comment added: July 23rd, 08 @ 11:57 am
  19. Enzo

    *is happy that he’s only taking trigonometry and algebra 3*

    Comment added: July 23rd, 08 @ 12:29 pm
  20. Rachael

    /^ = half an emoticon?

    MK = Milton Keynes.

    ([1-9] = Think of a number between 1 and 9?

    Then I get stuck.

    Comment added: July 23rd, 08 @ 2:45 pm
  21. Vasili

    I know what it could match, but never what it would be used for.

    Comment added: July 23rd, 08 @ 2:54 pm
  22. nerd.

    Just a hunch, but it looks like a validator for a Milton Keynes post code.

    Comment added: July 23rd, 08 @ 3:01 pm
  23. Grant

    A php algorithm

    Comment added: July 23rd, 08 @ 5:08 pm
  24. Dizzy

    O_O I have no idea.

    Comment added: July 23rd, 08 @ 6:03 pm
  25. Mumblies

    A macro? Dunno, i fick lol

    Comment added: July 23rd, 08 @ 7:27 pm
  26. Jem

    Virtual cookies to Rachael and nerd; it is indeed a regular expression to match against a set of Milton Keynes postcodes (something I had to make for my course).

    Comment added: July 23rd, 08 @ 8:05 pm
  27. Rachael

    Woo!

    I used to have an MK postcode a few years ago, actually.

    MK18 FTW. I know MK42 is Bedford… MK8 is in MK somewhere. MK18 is Buckingham and surrounding villages… *geek*

    Comment added: July 23rd, 08 @ 10:13 pm
  28. Melissa

    And the question was “What is the meaning of life?” I take it?

    Over my head, whoosh.

    Comment added: July 23rd, 08 @ 11:12 pm
  29. Jabed

    Virtual cookies to Rachael and nerd; it is indeed a regular expression to match against a set of Milton Keynes postcodes (something I had to make for my course).

    And now I know that I can sleep in peace knowing what the hell that PHPP jargon was. ^___^

    Comment added: July 24th, 08 @ 11:22 am
  30. Chien Yee

    All I knew is that you need to put in MK in front :P

    Comment added: July 24th, 08 @ 12:37 pm
  31. Stepherz

    That is hopefully something I’ll never see besides here….

    Comment added: July 24th, 08 @ 8:53 pm
  32. Poet Blogger

    I hate regex with a passion, well, kind of. If I can get it to work first try it is awesome, otherwise it is a pain in the butt. Main reason I hate it: the littlest thing can throw it off.

    Comment added: July 25th, 08 @ 9:06 am

Leave a Reply

I'm not interested in viagra or penis enhancers, first-time commenters are moderated and anonymous comments are deleted. Don't waste my time, or yours.