Q
Q
QNA-19762020-01-18 23:19:48
phpstorm
QNA-1976, 2020-01-18 23:19:48

What are the messages?

$pattern = '#<script.*?>.*?</script>#si';
highlights #si at the end, where it outputs:
# - top level '#' expression
si - Unresolved variable
Does something need to be corrected and how, if necessary?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2020-01-19
@QNA-1976

I think the storm incorrectly determines the contents of the string and tries to "see" the JS there.
If the error confuses, you can try to replace the limiters in the regular expression: At least it helped me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question