Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
PHP offers two different types of regex matching functions, preg and ereg. ereg is substantially slower and is also slated for removal in PHP6. It would be wise to standardize on preg_* functions as they're faster, makes reading the code easier, and aren't deprecated.
There's already an issue seeking to update the ereg_* calls to preg_* calls and it should be worked on if this becomes a coding standard:
#64967: Replace ereg with preg
Comments
Comment #1
heather CreditAttribution: heather commentedChanged the component to reflect the new component categorization. See http://drupal.org/node/301443
Comment #2
Dries CreditAttribution: Dries commented[#64967: Replace ereg with preg] was committed to CVS HEAD. We should probably add a note to the upgrade instructions.
Comment #3
dawehnerthis not was written here: http://drupal.org/node/224333#preg_match