I am having some URLs in this format. Some URLs contain &abc=4 and some not.
xxxxxxxxxxxxxxxxxxxxxxxxxxx&abc=4
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&abc=4
xxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
here xxxxxxxxxxxxxxxxxxxxx is string
I want to match URLs which have xxxxxxxxxxxxxxxxx only and not &abc=4(meaning I want to get these type of URLs, only xxxxxxxxxxxxxx, xxxxxxxxxxxxxx, xxx)
I know how to write a regular expression which matches the entire url. For example: /x.*abc=4/
But how do I write a regular expression that matches only xxxxxxxxxx and not &abc=4?
?abc=4