0
我想寫一個模塊上傳犁但我有解析上傳頁面的問題。sed從html頁面提取鏈接
我需要提取UPLOAD_URL
<script type="text/javascript">
upload_url: "http://s73.domain.com/?action=uploadfiles&user_id=TVRnN21ESX2c&secret_code=f4r6w35q639ih7oi62u674ae91453697", // Relative to the SWF file (or you can use absolute paths)
我登錄後,我加載頁面進行上傳,然後我需要提取UPLOAD_URL
我嘗試:
'upload_url:' '"\([[:digit:]]|http[:]//[^ ])*'
,但我得到此錯誤
sed: -e expression #1, char 60: Unmatched (or \(
感謝您的回覆! Sed的代碼運行良好! – Xander 2014-09-05 18:46:11