T-Regx
T-Regx copied to clipboard
Refactor `TRegx\SafeRegex\preg::match` to `\preg2_match()`
Currently, documentation states that "you only need to replace preg_ with preg::", but that's not true, since you also need to add the namespace.
We should remove the namesapce so the legacy projects really can be updated without any other change.
Perhaps this change can be only in t-regx/preg, not in t-regx/pattern.
Maybe actually we can rename the methods to preg2_match, preg2_replace(), preg2_match_all().
Or maybe even better, Maybe we could name it treg_match, treg_match_all, treg_replace or treg_replace_callback.
preg2_match(),preg2_match_all(),preg2_replace(),preg2_replace_callback(),preg2_grep()pregx_match(),pregx_match_all(),pregx_replace(),pregx_replace_callback(),pregx_grep()tregx_match(),tregx_match_all(),tregx_replace(),tregx_replace_callback(),tregx_grep()treg_match(),treg_match_all(),treg_replace(),treg_replace_callback(),treg_grep()
Should preg2_match() restore support for ancient PHP versions, like 5.6 and 5.3?
Support for it was dropped mainly for the sake of pattern().