News for hackers. Stuff that matters.

zenithcobra

Re:Best syntax for a regex literal on Tuesday January 29, 2019 @02:06PM (#19028984)
"^[AEIOU]{1}.+[aeiou]{1}$" or `(^[AEIOU]{1}.+[aeiou]{1}$) or re (^[AEIOU]{1}.+[aeiou]{1}$) or @(^[AEIOU]{1}.+[aeiou]{1}$) or <^[AEIOU]{1}.+[aeiou]{1}$> or /^[AEIOU]{1}.+[aeiou]{1}$/ or (re:^[AEIOU]{1}.+[aeiou]{1}$) or `^[AEIOU]{1}.+[aeiou]{1}$`

all look ugly. I would either use a triple distinct character set like python with """^[AEIOU]{1}.+[aeiou]{1}$""" or ~~~^[AEIOU]{1}.+[aeiou]{1}$~~~ but for simplicity you should use the re(...) one because you can intuitively know where the wrapper starts and ends.

Re:Ask HN: Why do you still use Emacs/Vim? on Tuesday November 20, 2018 @12:59PM (#18495934)
question with a question. Why does everyone still use bash?
Re:Best Practices for Time Travelers (2003) on Monday November 28, 2016 @03:17PM (#13058037)
the earth spins around the sun. the sun spins around the milky way. so if one where to time travel wouldn't they just pop into a space where we are now but where the earth hasn't reached yet?