後排除出現次數要包括以下:正則表達式 - 包括達到一定的性格和
com/signup?product=exampleproduct_5
com/signup?product=exampleproduct_10
com/signup?product=exampleproduct_20
等,但不包括以下格式:
com/signup?product=exampleproduct_5&opc=50cf4090b21efc35b211990818a33db210396d80
com/signup?product=exampleproduct_10&opc=50cf4090b21efc35b211990818a33db210396d80
com/signup?product=exampleproduct_20&opc=50cf4090b21efc35b211990818a33db210396d80
等
試過以下,但沒有明顯不起作用,因此在這裏!
.*/signup\?product=payroll__(.*)&$
使用「&」下面的兩個數字是如何,我認爲我應該他們倆之間進行區分。例如,如果在兩個數字後面有「&」,則不包括。
欣賞所有的建議和幫助,因爲我花了幾個小時嘗試,並由於我有限的知識無處可尋。
你看這個? '。*/signup \?product = payroll __([^&] *)$' – trincot
上下文是什麼?你是否匹配獨立的字符串,或者在更大的文本中搜索它們? –