JS' regex being written with a space

How can JS’ regex work/run normally while being written with any space allowed in any position (like some decent programming languages can)?

please add more details

1 Like