当前位置:网站首页>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 >
边栏推荐
猜你喜欢
基于LNMP部署flask项目
Wu Jun's trilogy insight (V) refusing fake workers
Program counter of JVM runtime data area
07个人研发的产品及推广-人力资源信息管理系统
Data transfer instruction
Interpretation of Flink source code (III): Interpretation of executiongraph source code
1. JVM入门介绍
数据仓库建模使用的模型以及分层介绍
Take you hand-in-hand to do intensive learning experiments -- knock the level in detail
集成开发管理平台
随机推荐
Precipitated database operation class - version C (SQL Server)
Flink 解析(六):Savepoints
暑假刷题嗷嗷嗷嗷
Flink parsing (III): memory management
Introduction to spring trick of ByteDance: senior students, senior students, senior students, and the author "brocade bag"
C#版Selenium操作Chrome全屏模式显示(F11)
JVM garbage collector part 2
C version selenium operation chrome full screen mode display (F11)
关于Stream和Map的巧用
学习投资大师的智慧
connection reset by peer
JUnit unit test
Deploy flask project based on LNMP
JS garbage collection mechanism and memory leakage
沉淀下来的数据库操作类-C#版(SQL Server)
On the clever use of stream and map
vscode
Based on infragistics Document. Excel export table class
Flink源码解读(一):StreamGraph源码解读
Brush questions during summer vacation, ouch ouch