→ Rplus:所以2.(1)的 ^| 是什麼開頭? 09/06 04:50
→ ousapas:^ Matches the beginning of a line or string. 09/06 05:09
→ ousapas:$ Matches the end of a line or string. 09/06 05:09
→ blackkaku: (^|[^\\])也可以寫成[^\\^]吧。 09/06 10:13
推 l10nel:不可以 09/06 17:29
→ blackkaku:請問為何不可以? 09/06 20:30
推 l10nel:[^...] 表示任何非...的字元,這和 | 前的 ^ 明顯不同義。 09/07 05:17
→ l10nel:再說, ^不會消耗字元,只是抓取定點,[...]會消耗一個字元。 09/07 05:20
→ Rplus:] 09/07 05:34
推 blackkaku:了解了 感謝! 09/07 23:20
→ DingWeizhe:這一整句應該是在抓字串裡的跳脫字元吧? 09/10 01:38
→ DingWeizhe:2-1前面的^ 搭上2.2的(?:\\.)* 如果是以\x 開頭的 或者 09/10 01:44
→ DingWeizhe:2.1後面的[^\\]加上(?:\\.)* 不是\\x這種形式的 09/10 01:46