开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 209|回复: 3
收起左侧

[已解决] 正则表达式问题

 关闭 [复制链接]
结帖率:67% (4/6)
发表于 2024-10-13 14:09:05 | 显示全部楼层 |阅读模式   江苏省连云港市
5精币
["202410111457","11.72","11.72","11.72","11.70","10425.00",{},"0.54"]需要这里面的几个数据,正则需要怎么写?
下面是源文本:

“m60_today={"code":0,"msg":"","data":{"sz000001":{"qt":{"sz000001":["51","\u5e73\u5b89\u94f6\u884c","000001","11.72","11.98","12.00","2070891","891402","1179489","11.71","6719","11.70","4215","11.69","635","11.68","2967","11.67","620","11.72","1671","11.73","1334","11.74","3311","11.75","3414","11.76","1654","","20241011161448","-0.26","-2.17","12.17","11.58","11.72\/2070891\/2455848197","2070891","245585","1.07","4.84","","12.17","11.58","4.92","2274.34","2274.37","0.56","13.18","10.78","0.45","3772","11.86","4.39","4.90","","","1.04","245584.8197","0.0000","0"," ","GP-A","39.11","4.89","8.23","9.74","0.82","13.18","8.00","21.40","19.91","18.46","19405617528","19405918198","14.21","43.19","19405617528","","","15.52","0.00","","CNY","0","","11.80","-1906"],"market":["2024-10-13 14:03:28|HK_close_\u5df2\u4f11\u5e02|SH_close_\u5df2\u4f11\u5e02|SZ_close_\u5df2\u4f11\u5e02|US_close_\u5df2\u4f11\u5e02|SQ_close_\u5df2\u4f11\u5e02|DS_close_\u5df2\u4f11\u5e02|ZS_close_\u5df2\u4f11\u5e02|NEWSH_close_\u5df2\u4f11\u5e02|NEWSZ_close_\u5df2\u4f11\u5e02|NEWHK_close_\u5df2\u4f11\u5e02|NEWUS_close_\u5df2\u4f11\u5e02|REPO_close_\u5df2\u4f11\u5e02|UK_close_\u5df2\u4f11\u5e02|KCB_close_\u5df2\u4f11\u5e02|IT_close_\u5df2\u4f11\u5e02|MY_close_\u5df2\u4f11\u5e02|EU_close_\u5df2\u4f11\u5e02|AH_close_\u5df2\u4f11\u5e02|DE_close_\u5df2\u4f11\u5e02|JW_close_\u5df2\u4f11\u5e02|CYB_close_\u5df2\u4f11\u5e02|USA_close_\u5df2\u4f11\u5e02|USB_close_\u5df2\u4f11\u5e02|ZQ_close_\u5df2\u4f11\u5e02"],"zjlx":["sz000001","0.00","0.00","0.00","0","0.00","0.00","0.00","0","0.00","0.00","0.00","\u5e73\u5b89\u94f6\u884c","20200701","20200701^0.00^0.00","20200630^0.00^0.00","20200629^0.00^0.00","20200624^0.00^0.00","0.00","0.00","20200701085013"]},"m1":[["202410111448","11.67","11.68","11.69","11.67","12548.00",{},"0.65"],["202410111449","11.68","11.71","11.71","11.68","11080.00",{},"0.57"],["202410111450","11.72","11.71","11.72","11.69","6096.00",{},"0.31"],["202410111451","11.71","11.73","11.73","11.70","9423.00",{},"0.49"],["202410111452","11.74","11.71","11.74","11.70","12734.00",{},"0.66"],["202410111453","11.70","11.70","11.72","11.70","9915.00",{},"0.51"],["202410111454","11.72","11.72","11.72","11.69","5779.00",{},"0.30"],["202410111455","11.72","11.73","11.73","11.71","8596.00",{},"0.44"],["202410111456","11.72","11.72","11.72","11.71","11748.00",{},"0.61"],["202410111457","11.72","11.72","11.72","11.70","10425.00",{},"0.54"],["202410111458","11.72","11.72","11.72","11.72","642.00",{},"0.03"],["202410111459","11.72","11.72","11.72","11.72","0.00",{},"0.00"],["202410111500","11.72","11.72","11.72","11.72","19503.00",{},"1.00"]],"prec":"11.98"}}}”



最佳答案

查看完整内容

.版本 2 .支持库 spec .子程序 _按钮1_被单击 .局部变量 正则, 正则表达式类 .局部变量 n, 整数型 .局部变量 文本, 文本型 正则.创建 (“(\[” + #引号 + “\d{12}.*?\])”, #常量1) 文本 = 正则.取子匹配文本 (10, 1) 调试输出 (文本)

回答提醒:如果本帖被关闭无法回复,您有更好的答案帮助楼主解决,请发表至 源码区 可获得加分喔。
友情提醒:本版被采纳的主题可在 申请荣誉值 页面申请荣誉值,获得 1点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
快捷通道:申请荣誉值无答案申请取消悬赏投诉有答案未采纳为最佳

签到天数: 15 天

发表于 2024-10-13 14:09:06 | 显示全部楼层   四川省宜宾市
  
子程序名返回值类型公开备 注
_按钮1_被单击  
变量名类 型静态数组备 注
正则正则表达式类 
n整数型 
文本文本型 
正则.创建 (“(\[”#引号“\d{12}.*?\])”, #常量1 )
文本 = 正则.取子匹配文本 (10, 1)
调试输出 (文本)


i支持库列表   支持库注释   
spec特殊功能支持库

评分

参与人数 1荣誉 +1 收起 理由
笨潴 + 1 热心帮助他人,荣誉+1,希望继续努力(*^__^*) 嘻嘻!

查看全部评分

回复

使用道具 举报

签到天数: 15 天

发表于 2024-10-13 14:15:21 | 显示全部楼层   四川省宜宾市
1.e (959.52 KB, 下载次数: 1)
回复

使用道具 举报

结帖率:98% (39/40)

签到天数: 24 天

发表于 2024-10-13 14:22:36 | 显示全部楼层   重庆市重庆市
1.e (955.69 KB, 下载次数: 1)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
网站简介:精易论坛成立于2009年,是一个程序设计学习交流技术论坛,隶属于揭阳市揭东区精易科技有限公司所有。
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表