If preg is deprecated in php 5.3 and removed from php 6.0, for incentive the use of PCRE, maybe the php people must check for a full multibyte support to that functions.
I love PCRE and use that functions for years. But, when I try to migrate from iso-8859-1 to utf-8, that functions (PCRE functions) going down. Thousands of code lines are make hundred of mistakes.
If PCRE is the selected group of regular functions, that can be good news, if (only if) that functions are multibyte supported.
If not, maybe a lot of people can forget use regular expressions.
---
Si el uso de las funciones para expresiones regulares compatibles con POSIX han sido declaradas obsoletas en php 5.3 y serán eliminadas en php 6.0 en favor de PCRE, entonces deberán asegurar el funcionamiento de las funciones PCRE en multibyte.
Desde siempre PCRE me ha parecido mejor, pero cuando he migrado mi código para que funcione con utf-8, las funciones PCRE no han funcionado correctamente. Miles de líneas han dejado de funcionar y han tenido que ser reparadas con el consiguiente costo y tiempo perdido.
Programo en múltiples idiomas y requiero que el soporte para multibyte sea real y verdadero. Si PCRE es lo que la gente de php ha elegido, entonces deberán dar el paso correcto con el soporte multibyte que actualmente tienen las funciones de expresiones regulares compatibles con POSIX.
Regular Expression (POSIX Extended)
- Introduction
- Installing/Configuring
- Predefined Constants
- Examples
- POSIX Regex Functions
- ereg_replace — Replace regular expression
- ereg — Regular expression match
- eregi_replace — Replace regular expression case insensitive
- eregi — Case insensitive regular expression match
- split — Split string into array by regular expression
- spliti — Split string into array by regular expression case insensitive
- sql_regcase — Make regular expression for case insensitive match
POSIX Regex
alejandro at devenet dot net
25-Sep-2009 03:46
25-Sep-2009 03:46
dhinged at comcast dot net
28-Jul-2009 12:22
28-Jul-2009 12:22
Deprecating POSIX regex in PHP for Perl searching is like substituting wooden boards and brick for a house with pre-fabricated rooms and walls. Sure, you may be able to mix and match some of the parts but it's a lot easier to modify with all the pieces laid out in front of you.
bg at ms dot com
27-Jul-2009 01:35
27-Jul-2009 01:35
There should be a huge message on here, regarding PHP 5.3.0 (June 30, 2009) because this appears to be the first time in history that PHP is abandoning parts of its API, specifically the POSIX regex stuff -- presumably this is to favor the PCRE regex stuff.
That's fine, but it should be well noted, not ignored.
