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.
次のようなサブルールがある場合:
.. (~']' ~']')* ...
偶数の文字にしか一致しませんか?
(ドットがメタ文字として意図されていないことを前提としています)
完全ではありませんが、ゼロまたは偶数の文字に一致します。
編集
引用ブロックを照合するには、次のようにします。
QUOTE : '[[' (options {greedy=false;} : . )* ']]' ;
[[ some text here ]]引用ブロックであると仮定します。
[[ some text here ]]