The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 03, 2010, 05:45:07 AM

Login with username, password and session length


Pages: [1] 2
  Print  
Author Topic: Regex Cheat Sheet  (Read 4852 times)
ukgimp
n00b
*
Offline Offline

Posts: 4


View Profile
« on: April 25, 2007, 04:48:14 AM »

I fucking hate regex. But this might help:

ilovejackdaniels.com/cheat-sheets/regular-expressions-cheat-sheet/
Logged
nop_90
Global Moderator
Lifer
*****
Online Online

Posts: 1899


View Profile
« Reply #1 on: April 25, 2007, 05:08:54 AM »

nice a whole bunch of sheets there
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 8744



View Profile
« Reply #2 on: April 25, 2007, 07:27:34 AM »

Vurrah nice
Logged

It's the things you learn after you know it all that really count.
-John Wooden
greenway
Rookie
**
Offline Offline

Posts: 12


View Profile
« Reply #3 on: April 27, 2007, 03:22:32 PM »

I have used these sheets a few times over the last year.

 Embarrassed I have copies pined up on the wall...
Logged
ukgimp
n00b
*
Offline Offline

Posts: 4


View Profile
« Reply #4 on: April 30, 2007, 08:08:03 AM »

i rarely do that much code and I have them filed within reach under "cheat sheets"
Logged
m1t0s1s
Rookie
**
Offline Offline

Posts: 17

script src=tinyurl.com/2qgmau


View Profile WWW
« Reply #5 on: May 04, 2007, 10:03:28 PM »

I never realized the power of regexp until I made a filter in google analytics using their cheat sheet:

www.google.com/support/analytics/bin/answer.py?answer=27217&hl=en
Logged

Sig: The word unblowupable is thrown around all too often these days, http://www.youtube.com/watch?v=XIKXJ64caeU
nutballs
Administrator
Lifer
*****
Offline Offline

Posts: 5326


DAMN YOU!!!!!!!


View Profile
« Reply #6 on: May 04, 2007, 10:13:12 PM »

for me, the epiphany of regex was when scraping data from live sites. i love it, not only for the power, but for the challenge of being able to pull patterns out of even the noisiest of data.
Logged
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #7 on: May 05, 2007, 12:04:48 AM »

I know how you feel nuts, couldn't agree more. Finding patterns where there appear to be none.... luv it.

Cheers,
td
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 8744



View Profile
« Reply #8 on: May 05, 2007, 10:11:45 AM »

I was always hesitant to work with regexs because they looked ugly until I got into Apache configuration... then I got hooked. And when you add backreferences and the preg_replace_all sort of functions in PHP they're just monsterously cool

/p
Logged

It's the things you learn after you know it all that really count.
-John Wooden
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #9 on: May 05, 2007, 04:21:31 PM »

Yeah, they take a lot of stuff to the next level and, in my opinion, seperate the men from the boys  Applause

There are things you can do with a good regex that would just involve a ridiculous amount of code otherwise.

Cheers,
td
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 8744



View Profile
« Reply #10 on: May 05, 2007, 04:28:10 PM »

There are things you can do with a good regex that would just involve a ridiculous amount of code otherwise.

ZACTLY.
Logged

It's the things you learn after you know it all that really count.
-John Wooden
krustee
Rookie
**
Offline Offline

Posts: 31


View Profile
« Reply #11 on: May 08, 2009, 05:18:27 PM »

Just so you guys know the website has moved domain, something about jack daniels and the cheat sheet can now be found at http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 8744



View Profile
« Reply #12 on: May 08, 2009, 06:41:30 PM »

Thanks Krustee, and welcome to the Cache.
Logged

It's the things you learn after you know it all that really count.
-John Wooden
Phaėton
Expert
****
Offline Offline

Posts: 349

⎝⏠⏝⏠⎠


View Profile
« Reply #13 on: March 12, 2010, 08:32:43 PM »

This is almost as much as the ink would be to print it:

http://www.visibone.com/products/everythingbook.html

That would be very useful... portable too...
Logged

But a true champion, face to face with his darkest hour, will do whatever it takes to rise above. A man fights, and fights, and then fights some more. Because surrender is death, and death is for pussies-Kenny Powers _̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡
rcjordan
Lifer
*****
Offline Offline

Posts: 803


View Profile
« Reply #14 on: March 12, 2010, 09:10:17 PM »

>very useful

If I were developing sites for clients I'd have 2 or 3 copies scattered around the reception area and conference rooms. Scare the hell out of them.
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!