当前位置:网站首页>Write a regular
Write a regular
2022-04-23 17:40:00 【Lost Camel】
demand :
character string : Stock code :002354, Shares referred to as" :*ST Tianyu , Number :2020--119, Bond code :112496, Bond abbreviation :17 Celestial spirit 01, Dalian Tianshen Entertainment Co., Ltd , About “17 Celestial spirit 01" Delisting announcement ,
Required string : Dalian Tianshen Entertainment Co., Ltd
const str = ' Stock code :002354, Shares referred to as" :*ST Tianyu , Number :2020--119, Bond code :112496, Bond abbreviation :17 Celestial spirit 01, Dalian Tianshen Entertainment Co., Ltd , About “17 Celestial spirit 01" Delisting announcement ,'
const info = str.split(/(?<=[:][^,]+),(?=[^,]+[:])/g).map(m=>({ key:m.split(':')[0],value:m.split(':')[1] }))
const compJJ = info.find(m=>m.key ===' Bond abbreviation ')
const compName = compJJ ? compJJ.value.split(',')[1] : ''
console.log(info,compJJ,compName)
// compName To get the company name
版权声明
本文为[Lost Camel]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230552420605.html
边栏推荐
- Low code development platform sorting
- Some questions some questions some questions some questions
- 圆环回原点问题-字节跳动高频题
- Seven cattle upload pictures (foreground JS + background C API get token)
- Add drag and drop function to El dialog
- 386. 字典序排数(中等)-迭代-全排列
- ASP. Net core configuration options (Part 2)
- ASP. Net core JWT certification
- 48. 旋转图像
- Compare the performance of query based on the number of paging data that meet the query conditions
猜你喜欢
Simulation of infrared wireless communication based on 51 single chip microcomputer
MySQL进阶之索引【分类,性能分析,使用,设计原则】
Using quartz under. Net core -- operation transfer parameters of [3] operation and trigger
102. 二叉树的层序遍历
常用SQL语句总结
MySQL advanced index [classification, performance analysis, use, design principles]
索引:手把手教你索引从零基础到精通使用
Compare the performance of query based on the number of paging data that meet the query conditions
Future 用法详解
Clickhouse table engine
随机推荐
双闭环直流调速系统matlab/simulink仿真
Why do some people say SCM is simple and I have to learn it so hard?
Some questions some questions some questions some questions
198. 打家劫舍-动态规划
干货 | 快速抽取缩略图是怎么练成的?
ros常用的函数——ros::ok(),ros::Rate,ros::spin()和ros::spinOnce()
Use of shell cut command
In embedded system, must the program code in flash be moved to ram to run?
How to sort the numbers with text in Excel from small to large instead of the first number
MySQL advanced index [classification, performance analysis, use, design principles]
48. 旋转图像
Change Oracle to MySQL
stm32入门开发板选野火还是正点原子呢?
開期貨,開戶雲安全還是相信期貨公司的軟件?
Perception of linear algebra 2
2.Electron之HelloWorld
ASP. Net core configuration options (Part 1)
[difference between Oracle and MySQL]
Add drag and drop function to El dialog
Sword finger offer 03 Duplicate number in array