Re:Show HN: I wrote a book on Python regular expressions
by gnulinux on Thursday August 08, 2019 @04:04PM
(#20648101)
Why not? They're just strings until they're compiled. "Code is data"
[ Parent
| on HN ]
Re:Show HN: I wrote a book on Python regular expressions
by CaptainMarvel on Thursday August 08, 2019 @05:19PM
(#20648901)
The thought of doing this literally didn’t occur to me... I think this is great!
Re:Show HN: I wrote a book on Python regular expressions
by jazzyjackson on Thursday August 08, 2019 @10:18PM
(#20650817)
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]