我有一個像下面的原始數據,並希望保持URL鏈接。崇高的文字正則表達式不起作用
> http://www.example.com/routes/en/bus-ticket-from-ipoh-to-alor-setar
> data:text/javascript;base64,Ly8gSGVyZSBZb3UgY2FuIHR5cGUgeW91ciBjdXN0b20gSmF2YVNjcmlwdC4uLgpjb25zb2x…:5
> http://www.example.com/routes/en/bus-ticket-from-ipoh-to-alor-setar
> data:text/javascript;base64,Ly8gSGVyZSBZb3UgY2FuIHR5cGUgeW91ciBjdXN0b20gSmF2YVNjcmlwdC4uLgpjb25zb2x…:5
> http://www.example.com/routes/en/bus-ticket-from-genting-highlands-to-singapore
> data:text/javascript;base64,Ly8gSGVyZSBZb3UgY2FuIHR5cGUgeW91ciBjdXN0b20gSmF2YVNjcmlwdC4uLgpjb25zb2x…:5
> http://www.example.com/routes/en/bus-ticket-from-alor-setar-to-shah-alam
> data:text/javascript;base64,Ly8gSGVyZSBZb3UgY2FuIHR5cGUgeW91ciBjdXN0b20gSmF2YVNjcmlwdC4uLgpjb25zb2x…:5
我在正則表達式搜索不匹配的無用塊\:5$
,這裏有什麼問題嗎?
發表您嘗試 –
@AvinashRaj我大膽的嘗試我嘗試 –
'行*:5 $'.. ..... –