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.
私はまだ正規表現を学んでおり、次の表現の解釈に問題があります。
(?<!\w)
それは、前に単語がないものに一致することを意味します..
効果を確認するには(?<!\w).
(?<!\w).
例えば
Hi World! ^ ^ ^
上記の単語^は前に単語がないため一致します
^
1]H が一致するのはなぜですか?
^(文字列の開始) が単語ではないため
2]最後に一致するのはなぜですか?
!は単語ではないため、($文字列の末尾) が一致します。
!
$