Community

What is the possible solution for e flag error in preg match.

I am getting ventral error for my project and its "Using the e flag in preg_match is a possible security risk" even though when i have not used e flag in preg_match.

My preg match is simple: -

$value = 'www.abc.com/videos/xkjdf3323323';
if (preg_match("/videos\/(.*)/", $value, $match)) {
// do something
}

I want to know what will be the solution for this error.

nobody click here