Home > Development Tools > notepad > body text

How to write regular expressions in notepad

藏色散人
Release: 2021-12-02 15:13:34
forward
4517 people have browsed it

下面由notepad教程栏目给大家介绍notepad如何写正则表达式,希望对需要的朋友有所帮助!

问题描述:

这个正则表达式用notepad++怎么写?

原文本:

<City Name="北京" Code="1" />
Copy after login

我想改成这样:

<a>北京</a>
Copy after login

在notepad++里面这样写的:

查找目标

替换为1

问题:

上面的正则表达式匹配不到,要怎样写才可以?

解决办法:

<a>$1</a>
Copy after login

匹配没问题,替换内容有问题

How to write regular expressions in notepad

注:

如果提示cant find text "",因为xml文件格式,后面加个?就可以匹配了。

The above is the detailed content of How to write regular expressions in notepad. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template