Regex

Entries from October 2007

Search

Twitter

    Regular Expression stuff.

    Monday, October 15. 2007

    8 Practical PHP Regular Expressions

    Here are eight examples of practical PHP regular expressions and techniques that I've used over the past few years using Perl Compatible Regular Expressions. This guide goes over the eight different validation techniques and describes briefly how they work. Usernames, telephone numbers, email addresses, and more.
    Continue reading "8 Practical PHP Regular Expressions"

    Saturday, October 13. 2007

    Regular Expressions in PHP

    What are Regular Expressions?

    Regular expressions are a way of describing a pattern, using this pattern with PHP you can match, examine, replace, and edit strings with extreme versatility and flexibility. This guide covers the basics of Perl Compatible Regular Expressions, or PCRE, and how to use preg_match(), preg_replace(), and preg_split().
    Continue reading "Regular Expressions in PHP"