[问题] 用RE处理书的目录

楼主: chrisdar   2016-03-26 12:28:31
输入资料:
5.2 Initializing the I/O Base Registers ................................. 51
5.3 Hiding and Function Disable troller Hub (PCH) Internal Devices 52
5.3.1 Fuse Disabled, Static Disabled, Non-Static Function Disable Device
Handling ................................................................. 53
8.4 SERR# Generation .................................................. 102
8.5 PCI Firmware Spec 3.0 Support ..................................... 103
8.6 ACPI Table and Methods for PCI Express* Support ................... 103
RE字串: ^([\d\.]+)\s*([^.]+)
目前错误:
5.3 标题抓到下一行的5
8.5 标题抓到 3就停了
请问有没有更好的 RE 字串? 目前用 Ultrapico Expresso 实验
作者: No (you stay there)   2016-03-26 23:03:00
^([\d\.]+)\s+(.+?)\.*\s+\d+$

Links booklink

Contact Us: admin [ a t ] ucptt.com