Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
[^9] と [^1-9] が正規表現で許可されていることは知っていますが、これの反対をコンパイルするのに問題があります:
^(<\?php[\w\W]*\?>/);
誰でも助けることができますか?
perl と互換性のある正規表現構文を使用している場合 (プラットフォームを指定していなくても、おそらくそうです)、構文でこれを行う(?!)ことができます。つまり、「a(?!b)」は「ac」には一致しますが、「ab」には一致しません。
(?!)