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.
すべての MAC アドレスを取得するために、この perl 正規表現を書きました。
^(?([0-9A-Fa-f]{12}))$
これは問題なく動作しますが、逆一致(MAC アドレスを含まないすべての文字列) は機能しません。
^(?!([0-9A-Fa-f]{12}))$
この正規表現を書く最良の方法は何ですか?