简体   繁体   中英

Using Regex Scrape the stock Data

I have a Json File i wanted to get data of stock data in below format is it possbile to Use Regex to get it

[["2017-10-04",799.2,824.95,795.6,824.0,818.85,8643924.0,70161.17]

["2017-10-04",799.2,824.95,795.6,824.0,818.85,8643924.0,70161.17]]

i dont want Question Marks, want only first five columns with Commas.

I am using a Automation tool to Download JSON file, if i can get that format my work is Completely done withput any Coding

I am new to Regex i downloaded Expresso but hard to understand it as of now

Your description is not clear enough, so I'm not sure what exact format do you expect of the end result. Here's the Regex that will keep the first 5 columns. /^([^,]+,){5}/gm

Better give a "input - output" test case, that's most efficient way to clarify your requirement.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM