$regexes = json_decode(file_get_contents('regexes.json'));
function replace_name($name) {
global $regexes;
foreach ($regexes as $from => $to) {
if(preg_match('/'.$from.'/i', $name)) {
return preg_replace('/'.$from.'/i', $to, $name);
}
}
return $name;
}
-
Notifications
You must be signed in to change notification settings - Fork 1
License
codecalm/odmiana-imion
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published