using Regular Expressions to Look References in Source Insight

2024-04-13 05:58

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

using Regular Expressions to Look References in Source Insight :

想查找的内容为:

1.包含break

2.break后有一个空格,即不查找"break;

3.空格接下来是字母而不是分号(;),即不查找"break ;"

可在查找框中输入如下正则表达式:

    break\s[a-z]

查找结果如下:

---- break\s[a-z] Matches (11 in 5 files) ----
RcapiDevScriptDevice.java (java\nvprormapi):                    break loop;
RcapiFtpListener.java (java\nvprormapi):                    break thread_loop;
RcapiFtpMonitor.java (java\nvprormapi):                    break thread_loop;
RcapiFtpMonitor.java (java\nvprormapi):                        break monitoring_loop;
RcapiFtpMonitor.java (java\nvprormapi):                        break thread_loop;
RcapiFtpMonitor.java (java\nvprormapi):                        break monitoring_loop;
RcapiTftpListener.java (java\nvprormapi):                    break thread_loop;
RcapiTftpMonitor.java (java\nvprormapi):                    break thread_loop;
RcapiTftpMonitor.java (java\nvprormapi):                        break monitoring_loop;
RcapiTftpMonitor.java (java\nvprormapi):                        break thread_loop;
RcapiTftpMonitor.java (java\nvprormapi):                        break monitoring_loop;


附: Regular Expressions in http://www.sourceinsight.com/docs35/af1070763.htm:

Matching a Tab or Space

\t
\s
\w

\t matches a single tab character.

Example: \tint abc; matches a tab character followed by int abc;.

\s matches a single space character.

Example: \sif matches a space character followed by if.

\w matches a single white space character. In other words, \w matches either a tab or space character.

Example: \wwhile matches either a tab or space character, followed by while.


Matching Any in a Set of Characters

[ .. ]

When a list of characters are enclosed in square braces [..] then any character in that set will be matched.

Example: [abc] matches a, b, and c, but not d.

When a caret ^ appears at the beginning of the set, the match succeeds only if the character is not in the set.

Example: [^abc] matches d, e, or f, but not a, b, or c.

Sets can conveniently be described with a range. A range is specified by two characters separated by a dash, such as [a-z]. The beginning character must have a lower ASCII value than the ending character.

Example: [a-z] matches any character in the range a through z, but not A or 1 or 2.

Sets can contain multiple ranges.

Example 1: [a-zA-Z] matches any alphabetic character.

Example 2: [^a-zA-Z0-9] matches any non-alphanumeric character.




这篇关于using Regular Expressions to Look References in Source Insight的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



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

相关文章

Unity3D自带Mouse Look鼠标视角代码解析。

Unity3D自带Mouse Look鼠标视角代码解析。 代码块 代码块语法遵循标准markdown代码,例如: using UnityEngine;using System.Collections;/// MouseLook rotates the transform based on the mouse delta./// Minimum and Maximum values can

10 Source-Get-Post-JsonP 网络请求

划重点 使用vue-resource.js库 进行网络请求操作POST : this.$http.post ( … )GET : this.$http.get ( … ) 小鸡炖蘑菇 <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-w

fetch-event-source 如何通过script全局引入

fetchEventSource源码中导出了两种类型的包cjs和esm。但是有个需求如何在原生是js中通过script标签引呢?需要加上type=module。今天介绍另一种方法 下载源码文件: https://github.com/Azure/fetch-event-source.git 安装: npm install --save-dev webpack webpack-cli ts

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

Open Source, Open Life 第九届中国开源年会论坛征集正式启动

中国开源年会 COSCon 是业界最具影响力的开源盛会之一,由开源社在2015年首次发起,而今年我们将迎来第九届 COSCon! 以其独特定位及日益增加的影响力,COSCon 吸引了越来越多的国内外企业、高校、开源组织/社区的大力支持。与一般企业、IT 媒体、行业协会举办的行业大会不同,COSCon 具有跨组织、跨项目、跨社区的广泛覆盖面,也吸引了众多国内外开源开发者和开源爱好者的关注及参与

JS实现将两个相同的json对象合并成为一个新对象(对象中包含list或者其他对象)source===target(不破坏target的非空值)

重点申明一下, 这个方法 只限于两个完全一样的对象 ,不一样的对象请使用 下面的进行合并,   <script>let form = {name: 'liming', sex: '男'};let obj = {class: '一班', age: 15};console.log('before', form);Object.assign(form, obj); //该方法可以完成console.

LeetCode - 10. Regular Expression Matching

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

Matlab_learning_2(Pie‘s source code饼状图源码)

一、源代码 function hh = pie(varargin)%PIE Pie chart.% PIE(X) draws a pie plot of the data in the vector X. The values in X% are normalized via X/SUM(X) to determine the area of each slice of p

The steps for download android source code

The steps for download android source code. Except for the git tool, all the other steps is for both Windows and Linux. 以下描述是Windows上的操作步骤,其实windows和Linux上面的执行过程没有多大差别,仅在于git安装、Python脚本改成和机器上Pytho

Build Min Heap Using Array

Build min-heap using Array. 思路1:首先明白heap的底层implementation就是array,从0开始的parent和left,right的关系为, 如果现在的node index为i,那么parent index就是 (i-1)/2;   left  为2*i+1, right为 2*i+2;          ( i-1 ) / 2