0
什麼是將用戶標識從以下格式的URL中拉出的正則表達式?例如。在下面的例子中,我想在應用正則表達式後得到「1227627」作爲匹配。正則表達式從圖形API URL獲取Facebook用戶ID?
https://graph.facebook.com/1227627/movies?access_token=[access_token]&limit=5000&offset=5000&__after_id=103108306395658
注:我將在iOS版/ Objective C的使用這個。
對於一些背景 - 我正在使用graphi API批處理請求。批量請求最多可以包含20個單獨的請求,不幸的是,單個響應不會返回請求URL。我可以跟蹤所有的個人請求,但解析出與請求相對應的用戶標識會更簡單。
真棒,謝謝你,這麼一個完整的answer--你有任何指針學習正則表達式? – ch3rryc0ke 2012-02-01 08:36:14