question

Vladz01-1710 avatar image
0 Votes"
Vladz01-1710 asked azure-cxp-api edited

REGEX nested match

Let say i have this-> Thequickbrown=foxjumps using regex extracting the strings before the equal sign then adding comma every character without using the split() so the output would be T,h,e,q,u,i,c,k,b,r,o,w,n thank you for any suggestions..

not-supported-azure
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Vladz01-1710 avatar image
0 Votes"
Vladz01-1710 answered Vladz01-1710 edited

match(/^[^=]*/)

this gets the string before the equal sign.. the problem is how to nest another match if this is the solution so that the output would be separated by comma every letter

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Vladz01-1710 avatar image
0 Votes"
Vladz01-1710 answered

ok got it

.match(/^[^Z]*/).toString().match(/[^]/g)

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.