'The "no-character space" between two characters in REGEX Javascript [duplicate]

As we can split an array from a Regex, I try to understand this:

console.log( 'hello'.split(/([a-z])/g) );
// returns ['', 'h', '', 'e', '', 'l', '', 'l', '', 'o', '']

The return should be [ 'h', 'e', 'l', 'l', 'o']

How could I use this "no-character" in a Regex and what it represents in computer science?

I find this: Non-breaking space I tried:

let carac = String.fromCharCode(parseInt('202F', 16));
'hello'.split(carac);

But it not works.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source