News for hackers. Stuff that matters.

vonox

Re:Best syntax for a regex literal on Tuesday January 29, 2019 @02:14PM (#19029033)
I also use an alternative regex syntax to improve readability. For example:

re ("abc" | ["0"-"9"]+)

means this:

/abc|[0-9]+/

(You can put whitespaceses into the literal)

Re:Best syntax for a regex literal on Tuesday January 29, 2019 @02:12PM (#19029023)
Thanks