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

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

Jun 13, 2016 am 10:08 AM
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 Article Tags

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

Fix 0x800713ec.NET Framework error code

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

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决

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 releases Watch GT 5 smartwatch across Europe and UK in two sizes with early launch gift

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

Microsoft is rolling out Windows 11 23H2 build to the release preview channel with Copilot

.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

.NET Core cross-platform application development practice: a seamless journey from Windows to Linux and macOS

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 .net framework in Win10 system? How to uninstall .net framework in Win10

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

Comparison of Java and .NET

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

请教怎么修改url某一参数的参数值呢?是要拆开了再拼回去吗

See all articles