Home Backend Development PHP Tutorial 帮忙写个很简单的正则,多谢了.就是将*32199.net匹配到www.32199.net/

帮忙写个很简单的正则,多谢了.就是将*32199.net匹配到www.32199.net/

Jun 13, 2016 pm 01:41 PM
lt net

帮忙写个很简单的正则,谢谢了..就是将*.32199.net匹配到www.32199.net/*
帮忙写个很简单的正则,谢谢了..就是将*.32199.net匹配到www.32199.net/*
谢谢了..
*代表任意的字符..

------解决方案--------------------
什么意思? 替换? 还是url 重写
------解决方案--------------------
很简单 参考下http://liangfen1224.blog.163.com/blog/static/72377647201138115011897/
------解决方案--------------------

XML code
RewriteRule ^(.*).32199.net$ www.32199.net/$1
<br><font color="#e78608">------解决方案--------------------</font><br>写在httpd.cof别忘了重启apache啊
<br><font color="#e78608">------解决方案--------------------</font><br>$str1=http:\/\/www.32199.net/index.html<br>标记;<br><br>$pm1='@^(.*).32199.net/(.*)@';<br><br>if(preg_match($pm1,$str1))<br>{<br>	echo '1.找到了<br>';<br>}<br>else<br>{<br>	echo '1.找不到<br>';<br>}<br><br><br>---------------<br>结果我找到了... <div class="clear">
                 
              
              
        
            </div>
Copy after login
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Fix 0x800713ec.NET Framework error code Fix 0x800713ec.NET Framework error code Mar 07, 2024 am 10:07 AM

If you encounter the .NET Framework error 0x800713ec when installing a program in Windows 11/10, there are some methods you can take to solve the problem. This error is usually caused by not having the correct .NET Framework version, but there can be other causes. Here, we explore some common root causes to help you identify your issue and resolve it as quickly as possible. The entire error message looks like this: One or more issues caused the installation to fail. Please resolve the issue and try the installation again. See the log file for details. 0x800713ec Fix 0x800713ec.NET Framework Error Code To fix 0x800713ec.NET Framework error code, follow the solutions below

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 Jun 13, 2016 am 10:23 AM

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

Huawei releases Watch GT 5 smartwatch across Europe and UK in two sizes with early launch gift Huawei releases Watch GT 5 smartwatch across Europe and UK in two sizes with early launch gift Sep 20, 2024 am 06:47 AM

Huawei has now started selling the Watch GT 5, which has debuted globally alongside the Watch GT 5 Pro and the Watch D2. Added to that, Huawei has also showcased the MatePad Pro 12.2 and MatePad 12 X today outside China, details of which we have cove

.NET Core cross-platform application development practice: a seamless journey from Windows to Linux and macOS .NET Core cross-platform application development practice: a seamless journey from Windows to Linux and macOS Feb 26, 2024 pm 12:55 PM

With the launch of .NETCore, .NET developers have a new opportunity to easily write and run .NET applications on multiple operating systems. This article will delve into how to use .NETCore to achieve cross-platform application development, and share best practice experience on operating systems such as Windows, Linux, and macOS. 1. Prepare the development environment. To start cross-platform application development, you first need to prepare the development environment for each target platform. Windows On Windows, you can install .NETCoreSDK through Visual Studio. After installation is complete, you can create and run .NETCore projects through Visual Studio. Li

Microsoft is rolling out Windows 11 23H2 build to the release preview channel with Copilot Microsoft is rolling out Windows 11 23H2 build to the release preview channel with Copilot Sep 28, 2023 pm 07:17 PM

Everyone is looking forward to today's Windows 1123H2 release. In fact, Microsoft has just launched updates to the release preview, which is the closest channel before the official release stage. Known as Build 22631, Microsoft said they are rolling out the new rebranded chat app, phone link, and play together widgets that have been tested on other internal channels over the past few months. "This new update will have the same servicing branch and codebase as Windows 11 version 22H2 and will be cumulative with all newly announced features, including Copilot in Windows (preview)," Microsoft promises. Redmond officials further

How to uninstall .net framework in Win10 system? How to uninstall .net framework in Win10 How to uninstall .net framework in Win10 system? How to uninstall .net framework in Win10 Feb 15, 2024 am 09:45 AM

How to uninstall .netframework in Win10 system? Recently, some users have had some problems with their computers. They need to reinstall .netframework, but they need to uninstall the original files first. The user does not know how to uninstall. In fact, it is the same as the uninstaller. Next, the editor will introduce the method of uninstalling .netframework. Bar. Uninstallation steps 1. Enter the "Control Panel" interface and click on the "Programs" option. 2. Then click the “Uninstall a program” option in “Programs and Features”. 3. In the opened window interface, find “.netfr

Comparison of Java and .NET Comparison of Java and .NET Aug 20, 2023 pm 08:37 PM

Javaisahigh-levelprogramminglanguageoriginallydevelopedbySunMicrosystemsandreleasedin1995.Javarunsonavarietyofplatforms,suchasWindows,MacOS,andthevariousversionsofUNIX..NETframeworkisacomputersoftwareframeworkinventedbyMicrosoft.ItrunsonMicrosoftWind

请教怎么修改url某一参数的参数值呢?是要拆开了再拼回去吗 请教怎么修改url某一参数的参数值呢?是要拆开了再拼回去吗 Jun 13, 2016 am 10:24 AM

请问如何修改url某一参数的参数值呢?是要拆开了再拼回去吗?那么请问如何修改url某一参数的参数值呢?是要拆开了再拼回去吗?http://127.0.0.1/myo/newuser.php?mod=search&type=fastone比如现在我要修改mod=new要怎么做呢?------解决方案--------------------发送了请求

See all articles