A
A
Artem Gartung2020-05-17 17:58:08
PHP
Artem Gartung, 2020-05-17 17:58:08

What is the regular expression in PHP for URLs including get parameters?

Example 1: http(s)://site.ru?get=1
Example 2: http(s)://сайт.рф?get=1

Different sites will be processed through this regular expression and there may be more get parameters

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Osher, 2020-05-17
@blackangelada

None.
Parse the url via parse_url .
If you need query parameters, then put them in parse_str .

E
Edward, 2020-05-17
@IS-Builder

Artem Gartung ~https?://\S+~

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question