Home Backend Development PHP Tutorial 求几个正则解决办法

求几个正则解决办法

Jun 13, 2016 pm 01:16 PM
cms list nbsp order

求几个正则
我想求下面三个的PHP preg正则:
一、{cms.cfg.abc}---{cms. 和}是固定的 {cms.*.*}

二、{cms:list order='orderid desc'}模板内容{/cms:list}
  order='orderid desc' 是这个标签的属性列表.可有可无,也可能是多个如:
  {cms:list order='orderid desc' table='abc'}>模板内容{/cms:list}
  {cms:list}>模板内容{/cms:list}

三、{cms:include file='1.html'} 这样的

求上面三个的正则..
最近没分了..以后分灌水区放分

------解决方案--------------------
2、 /\{cms:([^: ]*)[^}]*\}.*\{\/cms:\1\}/
3、/\{cms:[^}]*\}/

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)

10 Ways to Adjust Brightness on Windows 11 10 Ways to Adjust Brightness on Windows 11 Dec 18, 2023 pm 02:21 PM

Screen brightness is an integral part of using modern computing devices, especially when you look at the screen for long periods of time. It helps you reduce eye strain, improve legibility, and view content easily and efficiently. However, depending on your settings, it can sometimes be difficult to manage brightness, especially on Windows 11 with the new UI changes. If you're having trouble adjusting brightness, here are all the ways to manage brightness on Windows 11. How to Change Brightness on Windows 11 [10 Ways Explained] Single monitor users can use the following methods to adjust brightness on Windows 11. This includes desktop systems using a single monitor as well as laptops. let's start. Method 1: Use the Action Center The Action Center is accessible

How to turn off private browsing authentication for iPhone in Safari? How to turn off private browsing authentication for iPhone in Safari? Nov 29, 2023 pm 11:21 PM

In iOS 17, Apple introduced several new privacy and security features to its mobile operating system, one of which is the ability to require two-step authentication for private browsing tabs in Safari. Here's how it works and how to turn it off. On an iPhone or iPad running iOS 17 or iPadOS 17, Apple's browser now requires Face ID/Touch ID authentication or a passcode if you have any Private Browsing tab open in Safari and then exit the session or app to access them again. In other words, if someone gets their hands on your iPhone or iPad while it's unlocked, they still won't be able to view your privacy without knowing your passcode

Fix: Copilot not working on Windows 11 23H2 Fix: Copilot not working on Windows 11 23H2 Nov 08, 2023 pm 03:09 PM

The latest feature update for Windows 11 is here, and it brings various app updates and improvements, however, many people are reporting that Windows 1123H2 does not have Copilot. This is unfortunate, especially if you're looking forward to trying out new AI assistants. We at Windows Report have encountered the same problem, and in today's guide we will show you some potential solutions that may help if Windows 11 Copilot is missing. How to enable Copilot on 23H2? How do we test, review and score? Over the past 6 months, we have been working hard to establish a new review system for how we produce content. use it

PHP framework and CMS integration: unlimited possibilities for technology integration PHP framework and CMS integration: unlimited possibilities for technology integration Jun 01, 2024 pm 05:16 PM

The benefits brought by the integration of PHP framework and CMS are: 1. Improve development efficiency; 2. Enhance security; 3. Simplify content management; 4. Flexibility. In a practical case, the Laravel framework was integrated with WordPressCMS to create a blog website with customized functions. The integration steps include creating a Laravel application, installing WordPress, configuring WordPress, creating a controller, defining routing, obtaining WordPress data, and in the Laravel view Display Data.

How to sort a list using List.Sort function in C# How to sort a list using List.Sort function in C# Nov 17, 2023 am 10:58 AM

How to sort a list using the List.Sort function in C# In the C# programming language, we often need to sort the list. The Sort function of the List class is a powerful tool designed for this purpose. This article will introduce how to use the List.Sort function in C# to sort a list, and provide specific code examples to help readers better understand and apply this function. The List.Sort function is a member function of the List class, used to sort elements in the list. This function receives

Imperial CMS directory location revealed Imperial CMS directory location revealed Mar 12, 2024 pm 10:33 PM

The location of the Empire CMS directory is revealed. Specific code examples are needed. Empire CMS (EmpireCMS) is a widely used open source content management system. Its flexibility and feature richness are loved by users. During the website development process, it is crucial to understand the directory structure and file location of Empire CMS, as this helps developers better manage website content and functions. This article will reveal the directory location of Empire CMS and provide specific code examples to help readers gain a deeper understanding of this content management system. 1.Basic directory structure

PHPcms column cache storage path revealed PHPcms column cache storage path revealed Mar 14, 2024 pm 03:18 PM

PHPcms is a powerful content management system that is widely used in website development. Column caching is an important function in PHPcms, which can improve website access speed and reduce server pressure. This article will reveal the storage path of the PHPcms column cache and provide specific code examples. 1. What is column caching? Column caching refers to generating static files from the column content in the website and storing them in the specified path. When the user accesses the column, the static file is directly read instead of dynamically generating the page every time. this

Impact and response to when PHPcms will stop maintenance Impact and response to when PHPcms will stop maintenance Mar 14, 2024 am 11:12 AM

The impact and response of when PHPcms will stop maintenance. With the continuous development of Internet technology, website construction has become an essential tool for many companies and individuals. In website construction, the content management system (CMS) plays an important role. As a commonly used CMS tool, PHPcms was once very popular. However, as time goes by, the update and maintenance of the PHPcms version gradually decreases or even stops maintenance, which brings a series of impacts to users and developers. This article will explore the impact of PHPcms out of maintenance and provide a

See all articles