S
S
snakewake2020-11-26 09:11:52
Regular Expressions
snakewake, 2020-11-26 09:11:52

How to find and replace part of URL in sublime text?

in the xml document there are urls like:
https://domain.ru/products/mayak?getparam=1&getparam=2
Need to select and delete the part of the url that comes after ? and until
At the same time, the getparameters of all urls are different
. Until I came to this expression
(?<=).+^?.+(?=)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
idShura, 2020-11-26
@idShura

Need to highlight and remove the part of the url that comes after the ? and before

It is not at all clear from the question which part of the url needs to be removed.
At the same time, the getparameters of all urls are different.

In the example, only one url is indicated, and how do they differ?
Give examples

S
SOTVM, 2020-11-26
@sotvm

Need to highlight and remove the part of the url that comes after the ? and before
with your conditions = print "?" :)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question