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.
Ruby 1.9でバックスラッシュが前にないすべての「[」または「]」に一致させたい:
/?<!\134[\[\]]/
と
/?<!\\\\[\[\]]/
しかし、「指定されていない繰り返し演算子のターゲット」が表示されます
負の後読みを括弧で囲む必要があります。
(?<!\\)[\[\]]