0
非-DEV這裏,但我需要一些幫助的URL寫一個正則表達式 -如何正確地寫出下列URL中的正則表達式
https://example.co.uk/checkout/order-received/210553/?key=wc_order_57960575c7d73
- 爲了跟蹤它在Kissmetrics ,到目前爲止,我已經得到了到
https://example.co.uk/checkout/order-received/?([ \ DA-Z .-] +)/
但我覺得很堅持,有人可以幫我一把?
謝謝!
也許['https:// example \ .co \ .uk/checkout/order-received/\ d +/\?[^ /] +'](https://regex101.com/r/lC1jD0/1 )?甚至可以將它固定爲['^ https:// example \ .co \ .uk/checkout/order-received/\ d +/\?[^ /] + $'](https://regex101.com/r/ lC1jD0/2)。 –