PHP 8.5.0 Beta 1 available for testing

Voting

: max(five, five)?
(Example: nine)

The Note You're Voting On

keizo at gomo dot jp
17 years ago
<?php
$pattern
= "([あ-ん]+)[0-9]+";
$string = mb_ereg_replace($pattern, '「\\1」:\\0', $string);
?>

you can use \\n for capture group in replacement

<< Back to user notes page

To Top