当前位置:网站首页>Notpad replacement
Notpad replacement
2022-07-21 18:24:00 【andrewhxc】
1、 Find array variables
The original string
str[1]abc[991];
str[2]abc[992];
str[11]abc[993];
str[22]abc[994];
str[111]abc[995];
str[222]abc[996];
str[1111]abc[997];
str[2222]abc[999];
The target string :
abc[1];
abc[2];
abc[11];
abc[22];
abc[111];
abc[222];
abc[1111];
abc[2222];
str\[([0-9]+)\]abc\[([0-9]+)\]
abc[\1]
2、 take C The formal array variable is converted to matlab Formal variable
The original string
abc[1];
abc[2];
abc[11];
abc[22];
abc[111];
abc[222];
abc[1111];
abc[2222];
The target string :
abc(1);
abc(2);
abc(11);
abc(22);
abc(111);
abc(222);
abc(1111);
abc(2222);
abc\[([0-9]+)\]
abc\(\1\)
3、 stay matlab Under formal format , Add subscript index 1
Original string
parms(1)
parms(2)
parms(3)
parms(4)
After replacing the string
parms(1+1)
parms(2+1)
parms(3+1)
parms(4+1)
parms\(([0-9]+)\)
parms\((\1)+1\)
1、 Find array variables
The original string
str[1]abc[991];
str[2]abc[992];
str[11]abc[993];
str[22]abc[994];
str[111]abc[995];
str[222]abc[996];
str[1111]abc[997];
str[2222]abc[999];
The target string :
abc[1];
abc[2];
abc[11];
abc[22];
abc[111];
abc[222];
abc[1111];
abc[2222];
str\[([0-9]+)\]abc\[([0-9]+)\]
abc[\1]
2、 take C The formal array variable is converted to matlab Formal variable
The original string
abc[1];
abc[2];
abc[11];
abc[22];
abc[111];
abc[222];
abc[1111];
abc[2222];
The target string :
abc(1);
abc(2);
abc(11);
abc(22);
abc(111);
abc(222);
abc(1111);
abc(2222);
abc\[([0-9]+)\]
abc\(\1\)
3、 stay matlab Under formal format , Add subscript index 1
Original string
parms(1)
parms(2)
parms(3)
parms(4)
After replacing the string
parms(1+1)
parms(2+1)
parms(3+1)
parms(4+1)
parms\(([0-9]+)\)
parms\((\1)+1\)
边栏推荐
- How to check whether the system supports a component when using Youxuan database
- Mogdb installation
- JS SVG cloud and love animation JS special effects
- 网络安全学习(千锋网络安全笔记)3--批处理编写
- 创意分页样式svg动画js特效
- Vi Practice -- import and export of Excel tables
- Starfish OS:以现实为纽带,打造元宇宙新范式
- Oracle数据库中查询一个时间段内的记录,如果其中某一天的记录没有,则取最近一天的记录填充,这个SQL应该怎么写呢?
- Okaleido tiger NFT即将登录Binance NFT平台,后市持续看好
- Zdog floating rotation animation JS special effect code
猜你喜欢
随机推荐
Network Security Learning (Qianfeng network security notes) 4-- user and group management
【微信小程序】页面导航详解
golang拾遗:自定义类型和方法集
RENIX_IPv6自动配置——网络测试仪实操
快手要抢贝壳蛋糕,线上卖房还是门好生意吗?
Les enregistrements d'une période de temps sont interrogés dans la base de données Oracle. S'il n'y a pas d'enregistrements d'un jour donné, les enregistrements du dernier jour seront remplis. Comment
牛客-TOP101-BM34
Balancing and scheduling of NuMA
Using community structure to visualize complex networks
使用 Web Workers
Don't know how to learn MySQL? It's enough to finish the 50 questions of Niuke (Chapter 10)
C# AES CBC模式 加密和解密
PKI certificate system
物体识别桌的应用都具备哪些功能
Appium automated testing
二维数组专题
不知道 MySQL 咋学?刷完牛客这 50 道题就够了!(第八篇)
Nonext fast medical image segmentation network based on MLP
网络安全学习(千锋网络安全笔记)4--用户与组管理
注册表介绍及其维护