This topic created in 4256 days ago, the information mentioned may be changed or developed.
使用零宽断言可以匹配后面『是某个模式』,但后面也可能『是行尾』,应该怎么写?
2 replies • 2014-09-24 20:01:14 +08:00
 |
|
1
icedx Sep 24, 2014 via Android
r'Nyan|$' 匹配Nyan字符或行尾
|
 |
|
2
liberize Sep 24, 2014
刚刚发现 xxx(?=(pattern|$)) 是可以工作的,结帖
|