I
I
issssrt2019-02-07 22:36:20
PHP
issssrt, 2019-02-07 22:36:20

How to parse links with a specific mask?

Есть ссылка вида http://www.site.ru/?q=kat/423432/943243281143/914234329892/23423

Using the mask ?q=kat, you need to parse all links containing this mask

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-02-07
@AleksandrB

preg_match
The regular expression itself:
reg = '\\?\q=kat\'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question