php 正则 提取视频地址,该怎么解决
php 正则 提取视频地址
比如discuz论坛的视频输出:
我想利用正则从上面代码中提取出视频的宽,高,和地址
即上述代码中三个值:550、400、http://player.56.com/v_NTYwMzg0MjA.swf
请问如何写正则?请大家帮帮忙,本人对正则的确一点都不懂。。。。
------解决方案--------------------
- PHP code
preg_match("/.+'width',\s+'(\d+)',\s+'height',\s+'(\d+)'.+'src',\s+'([^\']+)'.+/i",$s,$m); print_r($m);<div class="clear"> </div>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Script means script or script. In film, television, drama and other art forms, script is used to describe the dialogue, actions and scenes of characters, as well as the development and structure of the story. Script writing requires certain skills and experience, and it should be vivid and powerful, capable of attracting the audience's attention and conveying the emotions and themes of the story. Scripts are particularly important in the film and television industries. They are the basis of creation and determine the storyline, character development and dialogue content of the film. Script is an important tool for artists to create and express themselves.

php提交表单通过后,弹出的对话框怎样在当前页弹出php提交表单通过后,弹出的对话框怎样在当前页弹出而不是在空白页弹出?想实现这样的效果:而不是空白页弹出:------解决方案--------------------如果你的验证用PHP在后端,那么就用Ajax;仅供参考:HTML code

In the field of computer science, "script" usually refers to a scripting language or script file. A scripting language is an interpreted programming language commonly used for tasks such as automation, batch processing, and rapid prototyping.

Microsoft launched a new media player for Windows 11 devices last year, replacing the years-old Groove Music app. But starting today, Microsoft will also launch the Windows 11 Media Player application to Windows 10 users. The new media player app will replace the Groove Music app on Windows 10 PCs. Microsoft has been testing the new Media Player app using Windows 10 Release Preview Insiders for weeks, so it’s great to see the app finally making its way to stable

Detailed explanation of CSS dimension properties: height and width In front-end development, CSS is a powerful style definition language. Among them, height and width are the two most basic dimension attributes, used to define the height and width of the element. This article will analyze these two properties in detail and provide specific code examples. 1. Height attribute The height attribute is used to define the height of an element. You can use pixel, percentage or

Solutions to scripterror include checking syntax, file path, checking network connection, browser compatibility, using try-catch statements, using developer tools for debugging, updating browsers and JavaScript libraries, or seeking professional help. Detailed introduction: 1. Check for syntax errors: Script Error may be caused by syntax errors in JavaScript code. Use developer tools to check the code and fix syntax errors. Make sure that the brackets, quotation marks, semicolons, etc. in the code are correct. etc.

script is not a css tag, but a tag in HTML. This tag is used to define client-side scripts, such as JavaScript; the script element can either contain script statements or point to external script files through the src attribute. The syntax is "<script>// code</script>" or "<script src="script file address"></script>".

Most Windows users use the basic video player built into Windows, which Microsoft introduced at launch. You can play any video or audio file that supports most formats such as MP4, MP3, WAV, etc. But sometimes, you may download some video files from the internet, whether it is a movie or any tutorial, the content in it may be fast or slow. You may need to change its playback speed to watch and understand the video. If you are using windows media player and want to change its playback speed, then this article will guide you on how to do it on your Windows 11,10 PC. How to change Windows Me in Windows 11,10
