查找字符串strscan
2024-09-04 06:16:10
;Author : Bing
;Date : 1/10/2019
;Usage: modify log drictory according to actual drictory
fileopen fh 'd:\test.log' 0
while 1
filereadln fh line #读取文件
pause 2
waitln 'cd0( 43'
strscan inputstr ')' #以43后面开头查找
start_p=result+1
strscan inputstr '8' #以8结尾之前查找
end_p=result-1
len=end_p-start_p+1
strcopy inputstr start_p len file_size #copy查找的字符串up or down到inputstr
statusbox file_size 'title' #显示查找的字符串,在状态框中
endwhile
fileclose fh
closesbox
最新文章
- css精灵
- java.lang.reflect.Constructor
- [问题2014S04] 复旦高等代数II(13级)每周一题(第四教学周)
- 泛函编程(24)-泛函数据类型-Monad, monadic programming
- Java初学(一)
- 。。。验证码,发送不同的GET请求。。。
- C# 将datatable 转换json
- ZooKeeper 应用场景
- zoj 3665 Yukari's Birthday(枚举+二分)
- Swing界面刷新问题(转)
- HQL中左连接,右连接,内连接
- qt中建立图片资源文件
- TortoiseGit安装过程
- 关于Java 中跳出多重循环
- 使用minukube部署kubernetes admission webhook实现etcd pod安全删除
- sqlserver2008查看表记录或者修改存储过程出现目录名无效错误解决方法
- cf965C 二分+推方程
- angular7 DOM操作 及 @ViewChild
- Music Recommendation System with User-based and Item-based Collaborative Filtering Technique(使用基于用户及基于物品的协同过滤技术的音乐推荐系统)【更新】
- 我看Windows 8.1