Is it the following code that determines whether the url entered is Googlemap iframe?
preg_match("/<iframe src=\"https:\/\/www\.google\.com\/map(.*?)<\/iframe>/s", $map, $is_map);
if(!isset($is_map[1])){
echo"Map embedded code is incorrect.";
} else {
echo "This is the correct map.";
}
I have created a system to enter url for the map, so I want to eliminate it when I enter code other than the map.
php html5 regular-expression
preg_match("/<iframe src=\"https:\/\/www\.google\.com\/map(.*?)<\/iframe>/s", $map, $is_map);
915 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.