Encerrado

Build a VB.net regex to accurately capture javascript arrays elements into individual matches

You will create a VB.Net Regular Expression that will extract sub arrays out of the top level array.

For example:

var best_speed_last3 = [[],

[0,65,0,46,47,57,54,60,54,47],[57,33,44,58,67,60,50,57,49,58,54,0],[63,56,55,42,40,52,38,45,50,52,51,41,54,0],[40,47,54,54,42,55,56],[51,41,0,66,60,58,0,44,57],[56,51,57,0,55,44,54,33,59],[58,0,68,44,0,67,0,51,51],[52,36,54,48,38,49,53,55,47,55,65,45],[59,54,59,0,57,39,54,55,41,58,57,56,56,55],[35,57,57,0,0,57,55,67],[35,52,51,55,58,56],[64,46,64,41,62,53,53],[57,58,56,45,53,54,40],[60,52,52,32,68,44,58],[47,60,50,42,0,56,29,19],[51,30,42,58,42,27,58,62],[53,58,53,54,40,70,60,51,53,64],[50,0,57,45,51,41,55,57],[62,52,57,57,54,54,42,60,49],[47,0,42,47,0,58,62,57,39,60],[56,43,46,62,36,57,51,56,35],[0,56,45,60,53,62,58,53],[26,58,60,45,49,62,61,54,35,58],[38,0,46,20,35,57,0,56],[16,0,55,51,49,43,56],[58,37,51,44,0,51,53,0],[54,72,44,58,63,55,53,58,69,51],[41,60,55,0,60,28,66,48,47,47,67],[44,54,58,62,0,54,39,57,43],[55,45,61,60,46,55,0,20,50,38,62,32,36],[44,41,15,53,25,38,56,49,49],[0,0,64,59,0,0,57,0,0,16],[58,58,53,63,51,47,60,62],[49,54,36,54,50,47,32,48,30,56,62,55,50,0],[61,52,34,62,54,59,46,61,0],[24,21,64,50,60,63,51,0],[59,56,45,44,55,5,61,53],[53,66,61,62,0,57,48,53,52],[46,44,63,32,0,54,54,0,0,0],[55,50,0,63,63,38,60,25,60,47,55], ];

var avg_speed_last3 = [[],

[0,60,0,44,41,50,54,54,46,45],[51,32,37,54,61,53,48,50,43,55,47,0],[54,53,53,34,40,51,35,35,47,49,40,24,46,0],[38,47,51,45,41,50,52],[46,41,0,66,58,50,0,42,51],[38,48,53,0,51,35,54,21,58],[56,0,59,44,0,65,0,40,37],[49,31,52,36,38,43,45,51,40,48,59,40],[47,48,54,0,50,28,46,53,24,48,49,52,53,50],[31,51,50,0,0,50,50,25],[29,45,34,55,51,52],[58,33,55,40,58,38,45],[48,51,53,36,46,49,27],[58,40,48,32,62,40,47],[43,51,44,41,0,49,29,18],[35,30,30,43,39,27,55,59],[45,45,39,49,37,63,51,46,50,58],[35,0,48,37,35,27,50,52],[56,41,10,54,47,49,39,50,37],[40,0,37,42,0,53,47,46,39,51],[53,43,44,59,34,48,51,48,25],[0,49,41,48,49,53,45,45],[24,49,56,45,41,58,55,48,35,51],[38,0,41,11,31,47,0,52],[16,-14,51,46,33,33,53],[45,37,48,44,0,47,51,0],[46,60,39,47,53,49,47,51,59,44],[31,51,49,0,57,28,61,34,29,37,57],[42,52,55,59,0,50,4,51,38],[50,45,55,46,43,48,0,20,49,34,47,21,36],[15,36,15,38,21,37,55,36,44],[0,0,55,51,0,0,43,0,0,16],[51,51,39,53,41,42,55,49],[40,49,36,50,39,39,21,45,21,53,47,50,47,0],[46,48,34,56,50,47,46,57,0],[15,13,59,48,40,52,41,-16],[39,43,45,21,53,5,56,39],[43,59,47,58,0,48,45,39,47],[41,44,56,23,0,50,48,0,0,0],[52,47,0,56,34,36,28,5,44,46,46], ];

I want there to be the following for each defined javascript array.

Name Group:

"FactorName": best_speed_last3

Match 1: []

Match 2: 0,65,0,46,47,57,54,60,54,47

Match 3: 57,33,44,58,67,60,50,57,49,58,54,0

...

Name Group:

"FactorName": avg_speed_last3

Match 1: 0,60,0,44,41,50,54,54,46,45

Match 2: 51,32,37,54,61,53,48,50,43,55,47,0

Match 3: 54,53,53,34,40,51,35,35,47,49,40,24,46,0

...

Note that the raw text can have carriage return and line feed characters at "," boundaries. The solution must be in RegEx for VB to capture the Factors and matches. You can't just write brake it down into code with a bit of RegEx added, all in RegEx for speed.

This is for a calculation optimization test.

Habilidades: VB.NET

Ver mais: vb this, vb note, vb net array example, vb net array, vb net 11, regular expression example, regular expression code, regular expression a, regular expression 0, regex matches example, regex matches, regex is, regex in c, regex example, regex c, example of vb.net, example of vb net, example of regular expression, c regular expression example, array in vb.net with example, vb.net to c, vb.net for, vb.net, vb n, regex &

Acerca do Empregador:
( 3 comentários ) Houston, United States

ID do Projeto: #6810379

7 freelancers estão ofertando em média $305 para este trabalho

AHTOAH

A proposal has not yet been provided

$250 USD em 1 dia
(0 Comentários)
0.0
MichaelSte

La propuesta todavía no ha sido proveída

$250 USD em 1 dia
(0 Comentários)
0.0
sangxuan

Hi, I am 14+ years in VB.Net developing. I have done similar projects. Please send me a message , then I will supply a demo. Thanks

$250 USD in 3 dias
(0 Comentários)
0.0
eried

La propuesta todavía no ha sido proveída

$250 USD in 3 dias
(0 Comentários)
0.0
CBabbage

hi there, please take a look at my profile for reviews on completed RegEx projects. i am interested in learning more about your requirement and expectations. Hope to get a PM so we can discuss. Cheers.

$280 USD in 5 dias
(0 Comentários)
0.0
VJ30

A proposal has not yet been provided

$555 USD in 12 dias
(0 Comentários)
0.0
efficode

Hello, Thank you for the detailed description, l will build this Regex for you quickly. I will likely complete the task in 2 days, getting all the details just right may take a day more or two. I will count on yo Mais

$299 USD in 2 dias
(0 Comentários)
0.0