Hi.
I have about 1,000 long lines of HTML look like the one below.
5351 "aCombinationOption" : [{"id":87116473,"price":0,"stockQuantity":509,"regOrder":0,"optionName1":"1. ABC","optionName2":null,"optionName3":null,"optionName4":null,"optionName5":null,"todayDispatch":false},{"id":87116474,"price":50,"stockQuantity":313,"regOrder":1,"optionName1":"DEF","optionName2":null,"optionName3":null,"optionName4":null,"optionName5":null,"todayDispatch":false},{"id":87116475,"price":0,"stockQuantity":1509,"regOrder":2,"optionName1":"3. GHI","optionName2":null,"optionName3":null,"optionName4":null,"optionName5":null,"todayDispatch":false},{"id":87116476,"price":12000,"stockQuantity":9530,"regOrder":3,"optionName1":"JKL","optionName2":null,"optionName3":null,"optionName4":null,"optionName5":null,"todayDispatch":false}],
I want to select the first id numbers in every line using regular expression one by one in UEStudio v18.20.0.18.
1. How can I select the first one 87116473?
a) (?<=\"id\":)\d+.*?
b) \"id\":\d+.*?
c) (?:\"id\"(\d+)){1}
The a) and b) above select four things highlighted in orange color and c) doesn't work.
I know I can select the first one by including the square bracket in the regular expression like (?<=\[{\"id\":)\d+ but I'd like to select them without it.
2. Is it possible to select the second, third and fourth each by using regular expression in ever line of HTML?
** ABC, DEF, GHI, and JKL are product names in the drop down list box.
3. I told you I have about 1,000 lines look like the one above.
I want to count the number of IDs each line.
There are four ids in the first line of HTML and I want UE to type in four in the first line, the next number of ID numbers in the second line, and so on.
I know the #3 question is not good because I am just asking the answer without studying any computer programming language. lol
I am sure I will do study in the middle of Feb this year!
Any help will be greatly appreciated.
I have about 1,000 long lines of HTML look like the one below.
5351 "aCombinationOption" : [{"id":87116473,"price":0,"stockQuantity":509,"regOrder":0,"optionName1":"1. ABC","optionName2":null,"optionName3":null,"optionName4":null,"optionName5":null,"todayDispatch":false},{"id":87116474,"price":50,"stockQuantity":313,"regOrder":1,"optionName1":"DEF","optionName2":null,"optionName3":null,"optionName4":null,"optionName5":null,"todayDispatch":false},{"id":87116475,"price":0,"stockQuantity":1509,"regOrder":2,"optionName1":"3. GHI","optionName2":null,"optionName3":null,"optionName4":null,"optionName5":null,"todayDispatch":false},{"id":87116476,"price":12000,"stockQuantity":9530,"regOrder":3,"optionName1":"JKL","optionName2":null,"optionName3":null,"optionName4":null,"optionName5":null,"todayDispatch":false}],
I want to select the first id numbers in every line using regular expression one by one in UEStudio v18.20.0.18.
1. How can I select the first one 87116473?
a) (?<=\"id\":)\d+.*?
b) \"id\":\d+.*?
c) (?:\"id\"(\d+)){1}
The a) and b) above select four things highlighted in orange color and c) doesn't work.
I know I can select the first one by including the square bracket in the regular expression like (?<=\[{\"id\":)\d+ but I'd like to select them without it.
2. Is it possible to select the second, third and fourth each by using regular expression in ever line of HTML?
** ABC, DEF, GHI, and JKL are product names in the drop down list box.
3. I told you I have about 1,000 lines look like the one above.
I want to count the number of IDs each line.
There are four ids in the first line of HTML and I want UE to type in four in the first line, the next number of ID numbers in the second line, and so on.
I know the #3 question is not good because I am just asking the answer without studying any computer programming language. lol
I am sure I will do study in the middle of Feb this year!
Any help will be greatly appreciated.