This post originated from an RSS feed registered with PHP Buzz
by Mike Naberezny.
Original Post: Regular Expressions in Ruby
Feed Title: Rails for PHP Developers
Feed URL: http://railsforphp.com/feed/
Feed Description: Rails for PHP Developers is about learning Ruby and Rails from a PHP developer's perspective.
PHP implements both POSIX and Perl-compatible regular expressions. The Perl-compatible regexp functions (which includes all the preg_* functions) is the preferred library for most developers since it has many features not available in POSIX, and is binary safe.
Ruby uses Perl-compatible regular expressions, so if you’re familiar with the preg_* functions in PHP, you’re already [...]