R
R
rinaz222019-02-07 16:55:25
PHP
rinaz22, 2019-02-07 16:55:25

How to escape link for php regexp?

Hello! There is a list of links. I take one from there and insert it into the regular season, but it does not work, because The link contains dots and slashes (/). There is a function in php that would escape characters before adding to the regular expression.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nick Sdk, 2019-02-07
@lidacriss

https://www.google.com/search?q=php+regular+screen...

V
Valentin, 2019-02-07
@romanko_vn

This will help you preg_quote

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question