当前位置:网站首页>Vscode matches and replaces the brackets
Vscode matches and replaces the brackets
2022-07-06 17:29:00 【geekqian】
adopt VSCode
Quickly XPath
Replace with the format you need .
1. Copy from web page XPath
Use Chrome
Browser browsing web pages , Right click on the page element and select Check (Inspect)
Then right click on the selected element tag and select Copy -> Copy Full XPath
2. Replace with the desired format
Copied from webpage XPath
after , The index of the element will be marked with brackets and numbers , as follows .
/html/body/div[1]/div/div[2]/div/div[2]/div[2]/div[2]/div/div[2]/div[1]/div[1]/div/div[2]/div/p[2]/a[1]
If you don't need an index at this time, you can use it in VSCode
Replace with regular matching , The specific way is as follows :
Use Ctrl+H
open Replace
function , stay Find
Column input regular expression : \[.\]
among \
For parentheses []
Do to escape , .
Then it means matching any character ,Replace
Don't write anything in a column , Then use the shortcut key Ctrl + Alt + Enter
Replace all .
stay UIPath
Used in , You need to put /
Replace with >
边栏推荐
- Flink parsing (VI): savepoints
- [CISCN 2021 华南赛区]rsa Writeup
- Assembly language addressing mode
- February database ranking: how long can Oracle remain the first?
- How does wechat prevent withdrawal come true?
- Programmer orientation problem solving methodology
- Flink 解析(五):State与State Backend
- Shawshank's sense of redemption
- 基于Infragistics.Document.Excel导出表格的类
- mysql的列的数据类型详解
猜你喜欢
arithmetic operation
信息与网络安全期末复习(基于老师给的重点)
C#版Selenium操作Chrome全屏模式显示(F11)
Prototype chain inheritance
数据仓库建模使用的模型以及分层介绍
Coursera cannot play video
Idea breakpoint debugging skills, multiple dynamic diagram package teaching package meeting.
Shawshank's sense of redemption
C version selenium operation chrome full screen mode display (F11)
Display picture of DataGridView cell in C WinForm
随机推荐
Wu Jun trilogy insight (IV) everyone's wisdom
MySQL advanced (index, view, stored procedure, function, password modification)
03 products and promotion developed by individuals - plan service configurator v3.0
暑假刷题嗷嗷嗷嗷
JVM class loading subsystem
【逆向初级】独树一帜
自动答题 之 Selenium测试直接运行在浏览器中,就像真正的用户在操作一样。
How does wechat prevent withdrawal come true?
Models used in data warehouse modeling and layered introduction
Only learning C can live up to expectations Top1 environment configuration
Akamai talking about risk control principles and Solutions
Flink 解析(六):Savepoints
List set data removal (list.sublist.clear)
[ciscn 2021 South China]rsa writeup
C#WinForm中的dataGridView滚动条定位
Programmer orientation problem solving methodology
自动化运维利器ansible基础
轻量级计划服务工具研发与实践
List集合数据移除(List.subList.clear)
06 products and promotion developed by individuals - code statistical tools