3 ms·
Well I suppose the r in front of them in python made them look just enough "not a normal string" for me to forget how the + operator might act. My day-to-day e
by jazzyjackson 7y ago
Well I suppose the r in front of them in python made them look just enough "not a normal string" for me to forget how the + operator might act.
My day-to-day experience is in nodejs, where adding one regex object to another coerces them to normal strings first
[edit: hey neat, the hackernews form strips emoji from comments, I wonder if that's just ranges of unicode or if there's some crazy regex going on :D]
- baudehlo 7y agoIn Javascript you just need to wrap in `new RegExp(r1 + r2 + r3)`.