0
我需要從URL獲取此字符串 - 「start = 100」,start可以從0更改爲1000+。 就像我曾嘗試正則表達式 -正則表達式 - 從URL中獲取值
Pattern p5 = Pattern.compile(".*start=[0-9]+.*");
Pattern p6 = Pattern.compile(".*start=\\d+.*");
Pattern p7 = Pattern.compile(".*start=.*");
Pattern p8 = Pattern.compile(".*(start=[0-9]+).*");
似乎沒有任何工作:(
使用'start = \\ d +'而不將它放在'。*'中。 – ndn
向我們展示更多代碼。 –