Zend Certified Engineer

phpguru.org

Free PHP, Javascript and C# code

PCRE Cheat Sheet


11th September 2005, 3309 views

Inspired by the great stuff at ilovejackdaniels.com, here's a dedicated PCRE cheat sheet. The PHP cheat sheet at ILoveJackDaniels is fine enough, but PCRE goes way beyond what is there. Hence, this. Enjoy.

Top 10 referrering pages

  1. http://www.php.net/manual/en/ref.pcre.php (45 referrals)
  2. http://bealers.com/2006/03/27/php-perl-compatible... (28 referrals)
  3. http://www.php.net/pcre (14 referrals)
  4. http://us.php.net/manual/en/ref.pcre.php (12 referrals)
  5. http://us2.php.net/manual/en/ref.pcre.php (11 referrals)
  6. http://au2.php.net/manual/en/ref.pcre.php (9 referrals)
  7. http://us3.php.net/manual/en/ref.pcre.php (7 referrals)
  8. http://www.1x1.jp/blog/2006/09/php_cheat_sheet.ht... (7 referrals)
  9. http://php.net/pcre (6 referrals)
  10. http://us.php.net/pcre (6 referrals)
- +
Rate this article

Link to me

If you use any of the code on this site (and if you don't I guess) or it makes your life easier, I'd appreciate a link - http://www.phpguru.org. Thanks!

RSS Feed for Comments

Comments

Author: C Drozdowski
Posted: 12th September 2005 00:13
Looks good and much quicker than going to php.net every time I have to look up someting related to PCRE (is that pronounced "pecker" or "peeker"?)

One thing, on Mac OS X 10.3.9, The PDF is two pages with the second page being completely blank. It's not a real issue but thought you'd like to know in case you're a perfectist like myself.
Quote
Author: Guillaume
Posted: 12th September 2005 14:34
I'm running Windows XP with Acrobat Reader 7 and the second page is also blank.
Quote
Author: Richard Heyes
Posted: 12th September 2005 19:20
C Drozdowski:
> Looks good and much quicker than going to
> php.net every time I have to look up someting
> related to PCRE (is that pronounced "pecker" or
> "peeker"?)

Dunno. I always pronounce it "pee-kree".

> One thing, on Mac OS X 10.3.9, The PDF is two
> pages with the second page being completely
> blank. It's not a real issue but thought you'd
> like to know in case you're a perfectist like
> myself.

Ok will fix.
Quote
Author: jackli
Posted: 13th September 2005 06:10
yup... winxp reader 7
i also confirm that the 2nd page completely blank..
Quote
Author: James
Posted: 13th September 2005 11:27
Acrobat Reader 7 on Ubuntu Linux (Gnome): also two pages, the second one being blank.
Quote
Author: jamie
Posted: 23rd October 2005 09:57
Why try to pronouce the unpronouceable ?

I say pee cee ar ee
Quote
Author: DarkFlib
Posted: 25th November 2005 21:24
I always pronouce it as Regexes or Perl compat regexes.

Just my 2 pence worth.

Quote
Author: Mike Tracer
Posted: 24th August 2006 22:36
The only thing I noticed lacking was any mention of using "?" after "*" or "+" to affect the current state of greediness -- something I use all the time.
Quote
Author: juanes
Posted: 27th September 2007 23:16
jackli:
> yup... winxp reader 7
> i also confirm that the 2nd page completely
> blank..

winxp adobe 5 only one page.
Quote
Author: James
Posted: 20th February 2008 11:29
This is a great little cheat sheet, all the most important info. Just printed out 2 copies, one for me the other for a colleague.
Quote

Post Comment

Your name:
Your email:
(Don't worry, I won't spam you. Also, if you do put your email address in here, you'll get notified of new comments. If you don't, you won't.)
Comments:
  Do not post support type questions please

 
CAPTCHA image If you can't read the CAPTCHA then press the submit button to get another. Your comment will re-appear (as if by magic...).
Captcha image