Scripting 設計 小考 G


請寫 regexp 分析 Astronomy Book List (或 本地映射) 的原始碼, 分別抓出列表裡面所有書籍的:

  1. 頁數 (例如: "265 Pages", "288 Pages", ...)
  2. 年月 (例如: "Nov-94", "Sep-92", ...)
  3. 作者的姓 (例如: "Manly", "Raymo", "Hawking", ...)
  4. 價格 (例如: "$23.07", "$12.00", "$11.96", ...)
  5. 代號 (例如: "0521433606", "0671766066", "0553346148", ...)
  6. 圖檔檔名 (例如: "astro13.gif", "astro2.gif", "astro28.gif", ...)
  7. 書名 (例如: "The 20-Cm Schmidt-Cassegrain Telescope", "365 Starry Nights: An Introduction to Astronomy for Every Night of the Year", "A Brief History of Time: From the Big Bang to Black Holes", ...)

請將完整的 perl 指令, 標上題號, 貼在一個文字檔, 交上來。

注意: 第一筆是以 table 開頭, 不是以 td 開頭 (不要太嚴格, 以免漏抓)