T
T
Ternick2018-10-12 01:51:54
Python
Ternick, 2018-10-12 01:51:54

Regular expressions. How to create a pattern according to these conditions and is it possible?

Look, there is a link, for example, this link indicates 2 values:
https://test.ru/check/?id=45433&login=noname
Both id and login can have different lengths and different values, there is only the beginning of the link, which does not change. But if you put the beginning of the link " https://test.ru/check/?id=
" in the search , then there will be a chance that it can skip a link that starts like this, but takes either only id or takes id and, for example, value. Is it possible to configure the search in such a way that it searches something like this: https://test.ru/check/?id=ANY_LENGTH_AND_ANY_CHAR...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2018-10-12
@Ternick

can.id=.*&login=.*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question