REGEX nested match

Vladz01 96 Reputation points
2021-03-23T13:05:13.963+00:00

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 Monitored
Not Monitored
Tag not monitored by Microsoft.
35,945 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vladz01 96 Reputation points
    2021-03-23T13:18:09.27+00:00

    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

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Vladz01 96 Reputation points
    2021-03-23T14:42:12.377+00:00

    ok got it

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

    0 comments No comments