标签:case-insensitive

  • PHP不区分大小写的strtr - php

    时间:2020-8-22

    在哪里可以找到strtr的不区分大小写的版本? strtr超载,我在说以下 string strtr ( string $str , array $replace_pairs ) 参考方案 使用str_ireplace: str_ireplace(array_keys($replace_pairs), array_values($replace_pairs) […]

  • 使否定的前瞻不区分大小写 - php

    时间:2020-8-10

    我有以下表达: $exp = "/^(?!.*?that).*$/"; 旨在匹配不包含“ that”的任何行。 我有以下三句话: $str = array( "I like this sentence.", #line1 "I like that sentence.", #line2 "I […]

  • FindFirstFileEx不区分大小写 - c#

    时间:2020-7-18

    因为我正在使用一个宏,如果给定路径的大小写与驱动器上的本地路径不相等,则该宏似乎可以工作,因此我首先需要验证该路径是否存在大小写。不幸的是(对于我而言)Directory.Exists()不区分大小写。 因此,我尝试将dwAdditionalAttributes设置为1的FindFirstFileEx来表示FIND_FIRST_EX_CASE_SENSITI […]