开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

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

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


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

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

查看: 157|回复: 4
收起左侧

[已解决] 正则表达式 求助

 关闭 [复制链接]
结帖率:79% (44/56)
发表于 2025-4-15 21:05:31 | 显示全部楼层 |阅读模式   福建省莆田市
15精币
[color=rgba(0, 0, 0, 0.88)]match_id:"(\d+)   [color=rgba(0, 0, 0, 0.88)]这个可以取ID
[color=rgba(0, 0, 0, 0.88)]ground:"([^"]+) 这个可以取首回合
[color=rgba(0, 0, 0, 0.88)]home_team_name:"([^"]+)这个可以取主队
[color=rgba(0, 0, 0, 0.88)] away_team_name:"([^"]+) 这个可以取客队
[color=rgba(0, 0, 0, 0.88)]jc_id:"([^"]+) 这个可以取比赛编号
怎么把他们加起来 取出所有数据

最佳答案

查看完整内容

match_id:"(\d+).*?ground:"?(.*?)"?,.*?home_team_name:"([^"]+).*?away_team_name:"(.*?)".*?,jc_id:"(.*?)"

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

结帖率:100% (1/1)

签到天数: 4 天

发表于 2025-4-15 21:05:32 | 显示全部楼层   河南省郑州市
match_id:"(\d+).*?ground:"?(.*?)"?,.*?home_team_name:"([^"]+).*?away_team_name:"(.*?)".*?,jc_id:"(.*?)"

评分

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

查看全部评分

回复

使用道具 举报

结帖率:79% (44/56)

签到天数: 8 天

 楼主| 发表于 2025-4-15 21:05:58 | 显示全部楼层   福建省莆田市
match_id:"(\d+)   

补充内容 (2025-4-15 21:06):
match_id:"(\d+)   
ground:"([^"]+)
home_team_name:"([^"]+)
away_team_name:"([^"]+)
jc_id:"([^"]+)  每一个单独都行 但是不会加起来
回复

使用道具 举报

结帖率:100% (1/1)

签到天数: 4 天

发表于 2025-4-15 21:10:51 | 显示全部楼层   河南省郑州市
需要看具体的原文本

补充内容 (2025-4-15 21:11):
或者你可用用 [\w\W]*?  把他们连起来

补充内容 (2025-4-15 21:11):
前提是需要保证顺序
回复

使用道具 举报

结帖率:79% (44/56)

签到天数: 8 天

 楼主| 发表于 2025-4-15 21:38:51 | 显示全部楼层   福建省莆田市
afu45 发表于 2025-4-15 21:10
需要看具体的原文本

补充内容 (2025-4-15 21:11):

window.__NUXT__=(function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L){return {layout:"default",data:[{},{originTournamentList:[{tournament_id:f,tournament_name:"欧冠",level:d,isHot:d,firstWord:"OG",color:"#CC3300",reverse:a,rank:970,numSection:i},{tournament_id:w,tournament_name:"英超",level:d,isHot:d,firstWord:"YC",color:"#FF3333",reverse:a,rank:999,numSection:i},{tournament_id:x,tournament_name:"日联杯",level:f,isHot:d,firstWord:"RLB",color:"#999999",reverse:a,rank:540,numSection:i},{tournament_id:y,tournament_name:"澳超",level:d,isHot:d,firstWord:"AC",color:"#FF6600",reverse:a,rank:820,numSection:i},{tournament_id:o,tournament_name:"日职联",level:d,isHot:d,firstWord:"RZL",color:"#009900",reverse:a,rank:z,numSection:i},{tournament_id:l,tournament_name:"欧联杯",level:d,isHot:d,firstWord:"OLB",color:"#6600CC",reverse:a,rank:z,numSection:i},{tournament_id:p,tournament_name:"欧协联",level:f,isHot:d,firstWord:"OXL",color:b,reverse:a,rank:q,numSection:i}],originMatchList:[{match_id:"11860742",tournament_id:f,match_time:A,sport_id:d,time_played:a,time_running:a,time_update:a,status:d,status_code:a,ground:"首回合 巴塞罗那 4:0 多特蒙德",home_team_id:"1105",home_team_name:"多特蒙德",away_team_id:"1211",away_team_name:"巴塞罗那",home_half_score:a,home_normal_socre:a,home_full_socre:a,away_half_score:a,away_normal_score:a,away_full_score:a,home_corner:b,away_corner:b,home_paper_yellow:b,away_paper_yellow:b,home_paper_red:b,away_paper_red:b,jc_id:"周二001",live_animate:d,live:a,article_num:"286",is_flow:a,home_rank:B,away_rank:d,bd_num:b,zc_num:b,report_num:k,season_id:m,index:r},{match_id:"11861004",tournament_id:f,match_time:A,sport_id:d,time_played:a,time_running:a,time_update:a,status:d,status_code:a,ground:"首回合 巴黎圣日耳曼 3:1 阿斯顿维拉",home_team_id:"40",home_team_name:"阿斯顿维拉",away_team_id:"462",away_team_name:"巴黎圣日耳曼",home_half_score:a,home_normal_socre:a,home_full_socre:a,away_half_score:a,away_normal_score:a,away_full_score:a,home_corner:b,away_corner:b,home_paper_yellow:b,away_paper_yellow:b,home_paper_red:b,away_paper_red:b,jc_id:"周二002",live_animate:d,live:d,article_num:"272",is_flow:a,home_rank:C,away_rank:d,bd_num:b,zc_num:b,report_num:k,season_id:m,index:2},{match_id:"11553110",tournament_id:o,match_time:s,sport_id:d,time_played:a,time_running:a,time_update:a,status:d,status_code:a,ground:b,home_team_id:"1449",home_team_name:"横滨水手",away_team_id:"1445",away_team_name:"清水心跳",home_half_score:a,home_normal_socre:a,home_full_socre:a,away_half_score:a,away_normal_score:a,away_full_score:a,home_corner:b,away_corner:b,home_paper_yellow:b,away_paper_yellow:b,home_paper_red:b,away_paper_red:b,jc_id:"周三001",live_animate:d,live:a,article_num:"29",is_flow:a,home_rank:"18",away_rank:D,bd_num:b,zc_num:b,report_num:a,season_id:E,index:3},{match_id:"11553111",tournament_id:o,match_time:s,sport_id:d,time_played:a,time_running:a,time_update:a,status:d,status_code:a,ground:b,home_team_id:"1458",home_team_name:"神户胜利船",away_team_id:"2008",away_team_name:"川崎前锋",home_half_score:a,home_normal_socre:a,home_full_socre:a,away_half_score:a,away_normal_score:a,away_full_score:a,home_corner:b,away_corner:b,home_paper_yellow:b,away_paper_yellow:b,home_paper_red:b,away_paper_red:b,jc_id:"周三002",live_animate:d,live:a,article_num:"21",is_flow:a,home_rank:"14",away_rank:t,bd_num:b,zc_num:b,report_num:a,season_id:E,index:4},{match_id:"11906096",tournament_id:x,match_time:s,sport_id:d,time_played:a,time_running:a,time_update:a,status:d,status_code:a,ground:b,home_team_id:"4063",home_team_name:"富山胜利",away_team_id:"1448",away_team_name:"名古屋鲸八",home_half_score:a,home_normal_socre:a,home_full_socre:a,away_half_score:a,away_normal_score:a,away_full_score:a,home_corner:b,away_corner:b,home_paper_yellow:b,away_paper_yellow:b,home_paper_red:b,away_paper_red:b,jc_id:"周三003",live_animate:d,live:a,article_num:k,is_flow:a,home_rank:"11",away_rank:"20",bd_num:b,zc_num:b,report_num:a,season_id:"289809",index:F},{match_id:"10326679",tournament_id:w,match_time:"1744828200",sport_id:d,time_played:a,time_running:a,time_update:a,status:d,status_code:a,ground:b,home_team_id:"39",home_team_name:"纽卡斯尔联",away_team_id:C,away_team_name:"水晶宫",home_half_score:a,home_normal_socre:a,home_full_socre:a,away_half_score:a,away_normal_score:a,away_full_score:a,home_corner:b,away_corner:b,home_paper_yellow:b,away_paper_yellow:b,home_paper_red:b,away_paper_red:b,jc_id:"周三004",live_animate:d,live:a,article_num:"10",is_flow:a,home_rank:u,away_rank:D,bd_num:b,zc_num:b,report_num:d,season_id:"283352",index:G},{match_id:"11857987",tournament_id:f,match_time:H,sport_id:d,time_played:a,time_running:a,time_update:a,status:d,status_code:a,ground:b,home_team_id:"1127",home_team_name:"国际米兰",away_team_id:"1104",away_team_name:"拜仁",home_half_score:a,home_normal_socre:a,home_full_socre:a,away_half_score:a,away_normal_score:a,away_full_score:a,home_corner:b,away_corner:b,home_paper_yellow:b,away_paper_yellow:b,home_paper_red:b,away_paper_red:b,jc_id:"周三005",live_animate:d,live:a,article_num:"34",is_flow:a,home_rank:d,away_rank:d,bd_num:b,zc_num:b,report_num:d,season_id:m,index:I},{match_id:"11861199",tournament_id:f,match_time:H,sport_id:d,time_played:a,time_running:a,time_update:a,status:d,status_code:a,ground:b,home_team_id:"1221",home_team_name:"皇马",away_team_id:"42",away_team_name:"阿森纳",home_half_score:a,home_normal_socre:a,home_full_socre:a,away_half_score:a,away_normal_score:a,away_full_score:a,home_corner:b,away_corner:b,home_paper_yellow:b,away_paper_yellow:b,home_paper_red:b,away_paper_red:b,jc_id:"周三006",live_animate:d,live:a,article_num:"23",is_flow:a,home_rank:f,away_rank:f,bd_num:b,zc_num:b,report_num:d,season_id:m,index:J},{match_id:"10492453",tournament_id:y,match_time:"1744882500",sport_id:d,time_played:a,time_running:a,time_update:a,status:d,status_code:a,ground:b,home_team_id:"2329",home_team_name:"布里斯班狮吼",away_team_id:"9471",away_team_name:"西部联",home_half_score:a,home_normal_socre:a,home_full_socre:a,away_half_score:a,away_normal_score:a,away_full_score:a,home_corner:b,away_corner:b,home_paper_yellow:b,away_paper_yellow:b,home_paper_red:b,away_paper_red:b,jc_id:"周四001",live_animate:d,live:a,article_num:d,is_flow:a,home_rank:"13",away_rank:t,bd_num:b,zc_num:b,report_num:a,season_id:"284638",index:K},{match_id:"11864798",tournament_id:p,match_time:"1744908300",sport_id:d,time_played:a,time_running:a,time_update:a,status:d,status_code:a,ground:b,home_team_id:"1123",home_team_name:"佛罗伦萨",away_team_id:"957",away_team_name:"采列",home_half_score:a,home_normal_socre:a,home_full_socre:a,away_half_score:a,away_normal_score:a,away_full_score:a,home_corner:b,away_corner:b,home_paper_yellow:b,away_paper_yellow:b,home_paper_red:b,away_paper_red:b,jc_id:"周四002",live_animate:a,live:a,article_num:a,is_flow:a,home_rank:B,away_rank:u,bd_num:b,zc_num:b,report_num:a,season_id:L,index:10},{match_id:"11863584",tournament_id:l,match_time:n,sport_id:d,time_played:a,time_running:a,time_update:a,status:d,status_code:a,ground:b,home_team_id:"1129",home_team_name:"拉齐奥",away_team_id:"218",away_team_name:"博德闪耀",home_half_score:a,home_normal_socre:a,home_full_socre:a,away_half_score:a,away_normal_score:a,away_full_score:a,home_corner:b,away_corner:b,home_paper_yellow:b,away_paper_yellow:b,home_paper_red:b,away_paper_red:b,jc_id:"周四003",live_animate:a,live:a,article_num:a,is_flow:a,home_rank:k,away_rank:f,bd_num:b,zc_num:b,report_num:a,season_id:v,index:11},{match_id:"11864241",tournament_id:l,match_time:n,sport_id:d,time_played:a,time_running:a,time_update:a,status:d,status_code:a,ground:b,home_team_id:"1106",home_team_name:"法兰克福",away_team_id:"33",away_team_name:"热刺",home_half_score:a,home_normal_socre:a,home_full_socre:a,away_half_score:a,away_normal_score:a,away_full_score:a,home_corner:b,away_corner:b,home_paper_yellow:b,away_paper_yellow:b,home_paper_red:b,away_paper_red:b,jc_id:"周四004",live_animate:a,live:a,article_num:a,is_flow:a,home_rank:t,away_rank:"15",bd_num:b,zc_num:b,report_num:a,season_id:v,index:12},{match_id:"11864242",tournament_id:l,match_time:n,sport_id:d,time_played:a,time_running:a,time_update:a,status:d,status_code:a,ground:b,home_team_id:"1218",home_team_name:"毕尔巴鄂竞技",away_team_id:"900",away_team_name:"格拉斯哥流浪者",home_half_score:a,home_normal_socre:a,home_full_socre:a,away_half_score:a,away_normal_score:a,away_full_score:a,home_corner:b,away_corner:b,home_paper_yellow:b,away_paper_yellow:b,home_paper_red:b,away_paper_red:b,jc_id:"周四005",live_animate:a,live:a,article_num:a,is_flow:a,home_rank:u,away_rank:f,bd_num:b,zc_num:b,report_num:a,season_id:v,index:13},{match_id:"11864796",tournament_id:p,match_time:n,sport_id:d,time_played:a,time_running:a,time_update:a,status:d,status_code:a,ground:b,home_team_id:"38",home_team_name:"切尔西",away_team_id:"1427",away_team_name:"华沙莱吉亚",home_half_score:a,home_normal_socre:a,home_full_socre:a,away_half_score:a,away_normal_score:a,away_full_score:a,home_corner:b,away_corner:b,home_paper_yellow:b,away_paper_yellow:b,home_paper_red:b,away_paper_red:b,jc_id:"周四006",live_animate:a,live:a,article_num:a,is_flow:a,home_rank:k,away_rank:"5",bd_num:b,zc_num:b,report_num:a,season_id:L,index:14}]}],fetch:{},error:c,state:{basketDetails:{common:{baseInfo:{},StatisticsHome:{},StatisticsAway:{}},baseData:{table_score_rank:c,history_battle:c,record_feature:c,odds_preview:c,tech_state:c,teach_handicap:c,future_match:c,near_match:c},tech:{ColumnarData:c,techDataReferData:c,avgShootData:c,scoreSpreadData:c,totalPointsData:c},liveData:{matchInfo:c,eventList:c,staticList:c,oddsInfo:c,animeUrl:c,ranking:c,statistics:c},lineUpData:c,oddsData:{WinLoss:c,WinLossList:[],WinLossName:c,WinLossHide:c,WinLossDetail:c,WinLossInMnity:c,Spread:c,SpreadList:[],SpreadName:c,SpreadHide:c,SpreadDetail:c,SpreadInMnity:c,totalScore:c,totalScoreList:[],totalScoreName:c,totalScoreHide:c,totalScoreDetail:c,totalScoreInMnity:c}},basketMatchList:{common:{refreshData:b,dataModel:e,goalVoice:e,goalNotice:e,noticePosition:r,bookList:[]},videoArr:[],current:{currentBook:{book_id:g,book_name:h},showPaper:j,showRank:e,server_time:b,tournamentList:[],originList:[]},end:{currentBook:{book_id:g,book_name:h},showPaper:j,showRank:e,server_time:b,tournamentList:[],originList:[]},future:{currentBook:{book_id:g,book_name:h},showPaper:j,showRank:e,server_time:b,tournamentList:[],originList:[]},lottery:{showPaper:e,showRank:e,server_time:b,tournamentList:[],originList:[],IssueList:[],IssueAction:{}},Follow:{currentBook:{book_id:g,book_name:h},showPaper:j,showRank:e,server_time:b,tournamentList:[],originList:[],dateFollow:new Date(1744719622525)}},dbtabase:{common:{TournamentInfo:c,seasonDate:c,CommonDate:c},matchList:{HotList:c,NearList:c},navData:{matchNav:c},TournamentSchedule:c,TournamentSeasonDate:c,detailsRankInfo:{TeamProfit:c,TournamentCorner:c,TotalGoal:c,WinDrawLoss:c,HandicapRecord:c,ScoreStatistics:c},scoreInfo:{ScoreRecent:c,ScoreRanking:c,RankingTable:c},coachInfo:{CoachBaseInfo:c,CoachDetailBaseInfo:c,CoachHistoryHonors:c,CoachCareerHistory:c},distributionInfo:{TournamentSaiGuo:c,TournamentSaiGuoDetails:c},LeagueInfoText:c},matchDetails:{common:{baseInfo:{},StatisticsHome:{},StatisticsAway:{}},baseData:{table_score_rank:c,history_battle:c,record_feature:c,odds_preview:c,tech_state:c,corner_ball:c,teach_handicap:c,single_double:c,yellow_red_card:c,future_match:c,near_match:c},techData:{},fingerData:{Europe:c,Subfinger:c,goalIndex:c,EuropeList:[],SubfingerList:[],goalIndexList:
回复

使用道具 举报

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

本版积分规则 致发广告者

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

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

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