The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 19, 2019, 05:35:47 AM

Login with username, password and session length


Pages: [1] 2
  Print  
Author Topic: Regex Cheat Sheet  (Read 14035 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

No links in signatures please
nop_90
Global Moderator
Lifer
*****
Offline Offline

Posts: 2203


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: 10096



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

Vurrah nice
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
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

No links in signatures please
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

No links in signatures please
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

No links in signatures please
nutballs
Administrator
Lifer
*****
Offline Offline

Posts: 5627


Back in my day we had 9 planets


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

I could eat a bowl of Alphabet Soup and shit a better argument than that.
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: 10096



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 is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
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: 10096



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 is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
krustee
Rookie
**
Offline Offline

Posts: 33


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: 10096



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

Thanks Krustee, and welcome to the Cache.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
Phaėton
Lifer
*****
Offline Offline

Posts: 555


⎝⏠⏝⏠⎠


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

When I was your age we used to walk to the TV to change the channel....  _̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡
rcjordan
Lifer
*****
Offline Offline

Posts: 882


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!