Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

関数名の正規表現に不要なピリオドを削除 #116

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

ftnext
Copy link
Contributor

@ftnext ftnext commented Feb 12, 2024

ユーザー定義関数 https://www.php.net/manual/ja/functions.user-defined.php についてのプルリクエストです。

正規表現で表すと、 ^[a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*$. となります。

とありますが、正規表現で末尾を表す$直後のピリオドが不要と思われました。

不要と判断した理由

英文:https://www.php.net/manual/en/functions.user-defined.php

As a regular expression, it would be expressed thus: ^[a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*$.

$の直後のピリオドは、正規表現の一部ではなく、英文の終わりを示すものと考えています

中国語訳:https://www.php.net/manual/zh/functions.user-defined.php

可以用正则表达式表示为: ^[a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*$。

$の後にはピリオドを翻訳した「。」が来ています

@mumumu mumumu merged commit cc2319d into php:master Feb 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants