困難度高的字串Parse問題

edited 十月 2013 in 進階PHP討論
請問有哪位高手能寫支程式解出這問題:


原字串 1:
(Id,00-E4-0E-01-14-32) (Logged-in Users,Dynamic,2,1,2) (auy6qn32,120.11.1.3,000EA6F94077,Ethernet,Apr 2 09:37:18,9213108,4733429) (ifefbg35,10.59.1.2,0000E27F68E6,Ethernet,Apr 2 09:38:17,8057221,502458)

原字串 2:

(Id,E0-90-0E-01-14-32) (System Uptime, 5 days 03h:43m:00s) (Location Name,) (Wan,43164111,756263890,0,0) (Lan,695904356,44894031,0,0) (Wireless,6184,0,172695,0)


原字串3:
(Id,01-90-0E-01-14-32) (LAN Devices Information,4,1,4) (DANIEL,OK) (DANIEL,OK) (adams,OK) (adams,OK)


我要於網頁秀出這類資訊:(去()和, 能正確分群顯示 不管字串組多少個)

example:

原字串1 Parse後需於網頁顯示

Id 00-90-0E-01-14-32

Logged-in Users Dynamic 2 1 2

auy6qn32 120.11.1.3 000EA6F94077 Ethernet Apr 209:37:18 9213108 4733429

ifefbg35,10.59.1.2 0000E27F68E6,Ethernet Apr 2 09:38:17 8057221 502458

原始討論: http://twpug.net/x/modules/newbb/viewtopic.php?topic_id=2566

評論

Sign In or Register to comment.