Answer the question
In order to leave comments, you need to log in
Comments in regular expressions (PHP)?
For regular expressions, it is possible to define comments: "/(?#comment)/".
And how to write this comment correctly when the regular expression is written like this:
"#(?#comment)#"?
The # symbol is convenient to use when parsing URLs often and a lot, so as
not to escape each /.
Thanks in advance for answering this possibly stupid question. It’s just that either Google doesn’t know, or I couldn’t explain to him normally what I need.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question