Emeditor Regular Expression

2024-01-19 04:58
文章标签 expression regular emeditor

本文主要是介绍Emeditor Regular Expression,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

要注意的是,查找所有,要加上 "." 后面+上“*”
EmEditor FAQ: What are examples of regular expressions? rel="stylesheet" type="text/css" href="../../help.css">

Q. What are examples of regular expressions?

  • strings surrounded by double-quotation marks
    ".*?"
  • strings surrounded by [ ]
    /[[^/[]*?/]
  • variable names
    [a-zA-Z_][a-zA-Z_0-9]*
  • IP addresses
    ([0-9]{1,3})/.([0-9]{1,3})/.([0-9]{1,3})/.([0-9]{1,3})
  • URL
    (/S+)://([^:/]+)(:(/d+))?(/[^#/s]*)(#(/S+))?
  • lines followed by a tab
    /t.*$
  • Hiragana
    [/x{3041}-/x{309e}]
  • Full-width Katakana
    [/x{309b}-/x{309c}/x{30a1}-/x{30fe}]
  • Half-width Kana
    [/x{ff61}-/x{ff9f}]
  • CJK ideographs
    [/x{3400}-/x{9fff}/x{f900}-/x{fa2d}]
  • CJK ideograph marks
    [/x{3000}-/x{3037}]
  • Hangul
    [/x{1100}-/x{11f9}/x{3131}-/x{318e}/x{ac00}-/x{d7a3}]
  • Insert // at start of lines
    Find: ^
    Replace with: //
  • Remove // at end of lines
    Find: ^//
    Replace:
  • Remove trailing whitespaces
    Find: /s+?$
    Replace with:
  • Replace (abc) with [abc]
    Find: /((.*?)/)
    Replace: /[/1/]
  • Replace <H3 ...> with <H4 ...>
    Find: <H3(.*?)>
    Replace: <H4/1>
  • Replace 9/13/2003 with 2003.9.13
    Find: ([0-9]{1,2})/([0-9]{1,2})/([0-9]{2,4})
    Replace: /3/./1/./2/.
  • Uppercase characters from a to z (EmEditor Professional only)
    Find: [a-z]
    Replace: /U/0
  • Capitalize all words (EmEditor Professional only)
    Find: ([a-zA-Z])([a-zA-Z]*)
    Replace: /U/1/L/2
EmEditor How to: Regular Expression Syntax rel="stylesheet" type="text/css" href="../../help.css">

Regular Expression Syntax

EmEditor regular expression syntax is based on the Perl regular expression syntax.

Literals

All characters are literals except: ".", "*", "?", "+", "(", ")", "{", "}", "[", "]", "^", "$" and "/". These characters are literals when preceded by a "/". A literal is a character that matches itself. For example, searching for "/?" will match every "?"in the document, or searching for "Hello" will match every "Hello" in the document.

Metacharacters

The following tables contain the complete list of metacharacters (non-literals) and their behavior in the context of regular expressions.

/Marks the next character as a special character, a literal, or a back reference. For example, 'n' matches the character "n". '/n' matches a newline character. The sequence '//' matches "/" and "/(" matches "(".
^Matches the position at the beginning of the input string. For example, "^e" matches any "e" that begins a string.

这篇关于Emeditor Regular Expression的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/621327

相关文章

leetcode#10. Regular Expression Matching

题目 Implement regular expression matching with support for ‘.’ and ‘*’. '.' Matches any single character.'*' Matches zero or more of the preceding element.The matching should cover the entire input

LeetCode - 10. Regular Expression Matching

10. Regular Expression Matching Problem's Link  ---------------------------------------------------------------------------- Mean:  给定一个串s和一个自动机p(模糊字符只含有'.'和'*'),问串s是否能够和自动机p匹配. analyse:

【教学类-35-21】20240901 中2班描字帖(学号+姓名、虚拟姓名、杨任东竹石体 Regular)

背景需求: 8月底通知我成为中2班的班主任,为了快速识别幼儿的脸、姓名、学号,再次制作描字帖,并拍照。 最近做的一份字帖是中4班描字帖 【教学类-35-20】20240328 中4班描字帖(学号+姓名 A4竖版2份 横面)+裁剪纸条+插入式纸盒-CSDN博客文章浏览阅读643次,点赞16次,收藏7次。【教学类-35-20】20240328 中4班描字帖(学号+姓名 A4竖版2份 横面)+

【多校第9场】【组合数学】【区间dp】【Expression】

Expression Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 370    Accepted Submission(s): 208 Problem Description Teacher Mai has

MySQL8.0新特性CTE(Common Table Expression)

CTE(Common Table Expression)可以认为是派生表(derived table)的替代,在一定程度上,CTE简化了复杂的join查询和子查询,提高了SQL的可读性和执行性能。CTE是ANSI SQL 99标准的一部分,在MySQL 8.0.1版本被引入。 原文地址: mytecdb.com/blogDetail.php?id=75 1. CTE优势 查询语句的可读

[RIS]GRES: Generalized Referring Expression Segmentation

1. BaseInfo TitleGRES: Generalized Referring Expression SegmentationAdresshttps://arxiv.org/pdf/2306.00968Journal/TimeCVPR2023Author南洋理工Codehttps://github.com/henghuiding/ReLARead20240829TableVisonLa

在emeditor中用正则将小写字母转换为大写(and vice versa)

小=>大 Search: [a-z] replace: \u\0 大=>小 search: [A-Z] replace: \L\0

JavaScript中Function Declaration与Function Expression 或者说 function fn(){}和var fn=function(){} 的区别

JavaScript是一种解释型语言,函数声明会在JavaScript代码加载后、执行前被解释,而函数表达式只有在执行到这一行代码时才会被解释。 在JS中有两种定义函数的方式, 1是:var aaa=function(){...} 2是:function aaa(){...}  var 方式定义的函数,不能先调用函数,后声明,只能先声明函数,然后调用。  function方式定义函数可以先调用

eslint工具编程“ Unnecessary use of boolean literals in conditional expression” 错误的解决方案

今天快下班提交代码时碰到这个很诡异的问题,如下图 这是我的代码报错的地方 很明显是eslint工具检测出来的,我们必须用它的代码规范来编程。后来查了下eslint官方文档,对其解释是: 当存在更简单的替代方案时,不允许三元运算符(不需要 - 三元) 也就是说我这种写法会显得啰嗦 改变这两行代码的写法 就ok了 详细解释说明传送

Expression:invalid operator

用sort函数时,对应的compare函数,在用于比较的两个参数相等时,返回值应为false