PHPverse 2025

Voting

: min(four, eight)?
(Example: nine)

The Note You're Voting On

keizo at gomo dot jp
16 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