The regex hold up

At 6:20pm today as I was leaving work, one foot already outside, the guy in front of my desk calls me :

Him : Elodie?
Me : Yes….?….
Him : Do you know regexes well?
Me : (aaAAH the horror! Time to run or what ?)
No, I leave. Yes, I might sleep there.
555ms left to answer…
Him : ?
Me : Hmmm…I’m ok. (Wrong answer, I knew it, I knew it!)…Why?
Him : I really don’t get this one. It seems like it’s replacing all the “n” by spaces.
I went to look. The regex looked like this : str.replace('/n/g', ' ');

Oh my goodness, than you I can run home ! :-D

Posted in Chats, Devsworld, Notes