Ruby uses Perl-compatible regular expressions, so if you’re familiar with the preg_*
functions in PHP, it will be easy to learn regular expressions in Ruby.
Ruby uses Perl-compatible regular expressions, so if you’re familiar with the preg_*
functions in PHP, it will be easy to learn regular expressions in Ruby.
PHP has a special pattern \w to define alphabetic characters. But it doesn’t find words on other languages but English.