2
我正在用php过滤一些文本。我看起来像模式:正则表达式跳过嵌入式模式
Mary [qtip:had|past tense of have] little lamb.
我提取锚文本从刀尖“有”“过去时态的具有”]的处理
部分是使用正则表达式/\[qtip:([^\|\\]]+)\|?([^\\]]*)?\]/
这是工作正常
我想扩展功能。
Mary [qtip:had|past [otherFunction:tense|verb form signalling time] of have] little lamb.
我头脑简单的模式发现"had"
& "past [otherFunction:tense|verb form indicating time"
我想这将跳过嵌入[]
双的模式。这些不允许在锚或工具提示。