Jump to content


Regular Expressions


2 replies to this topic

#1 Gustavo el Geranie

    Advanced Member

  • Members
  • PipPipPip
  • 716 posts

Posted 26 July 2004 - 09:14 AM

Hi,

regular expressions are a very useful thing for pattern matching, but if you don't know them well, they are at least cryptic. How to make the first step?

This is a list of links to sites that are related to regular expressions, if you know better sites, please post a reply.

Tutorials: For the experienced: This is a program where you can evaluate regexps in realtime, very useful for testing new ideas ;)
RegExpEditor

And one more thing, in PHP use the preg_* functions (PCRE functions) rather than the ereg_* functions (POSIX functions). They are faster and more complete.

#2 php3ch0

    Advanced Member

  • Members
  • PipPipPip
  • 162 posts

Posted 06 March 2006 - 02:26 PM

Just to add

Regex for email: /w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*

#3 Kuulest

    Advanced Member

  • Members
  • PipPipPip
  • 326 posts

Posted 06 March 2006 - 05:27 PM

If you use regular expressions extensively some regex editor is indeed a must-have. I use regexcoach for that purpose as it's supported by both Linux and Wins.
Check out http://www.weitz.de/regex-coach/ for more info.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users