Js regular match ending

string:

 ld=123456789&page=10

regular:

&page\=[\s\S]*?

matching result:

&page=

expected matching result:

&page=10

what should I do?


I found myself finding the answer

&page\=.*?$

that will do.


& page= [0-9] {1Magazine 5}? $
{1Magazine 5} means that page can be from single digits to five digits (to ten thousand digits). Modify
verification according to your own needs: https://regex101.com/


&page=[^&-sharp]*

& page= [SS] *
do not add a question mark. The following 10


is not caused by greed.
Menu