6 lines
165 B
PHP
6 lines
165 B
PHP
<?php function get_revision_from_string($string) {
|
|
|
|
preg_match('/(?i)(?<=rev)\w+/', $string, $matches);
|
|
$number = $matches[0] ?? "";
|
|
return $number;
|
|
} ?>
|