Few strata of geekery are more obsessive than regular-expression geekery. So let’s have some fun! In https://www.tbray.org/ongoing/When/202x/2024/09/22/Unbackslashing I explain why using the usual backslash “\” for escaping is hellishly inconvenient in a current project and propose replacing it with one of «, —, “, ¶, §, or ~. This Friday, I’ll be running some polls tagged #unbackslash to let you all join in.

#software #regex

Unbackslash

ongoing by Tim Bray

@timbray Some thoughts:
* Of your choices, `~` seems most sane
* `%` is decent
* In `sed`, I tend to use bang: `s!foo/bar!foo/baz!`
* …which supports @jannem's point about letting you pick
* For the particular case of (presumable table-driven) Go unit tests, you could just write a helper that replaces `~` with `\\\\\\\\` and wrap in the test inputs in calls to that function.

ps. I stumbled across https://symbl.cc/en/unicode-table and found it lovely for browsing

Unicode Character Table - Full List of Unicode Symbols (◕‿◕) SYMBL

Explore the complete Unicode characters table on SYMBL (◕‿◕). Find every symbol, emoji, and special character in one place. Perfect for developers, designers, and anyone working with digital text. Browse, search, and discover the full range of Unicode characters effortlessly.

@timbray @jannem Completely unserious suggestion: U+0302 — Combining Circumflex Accent — a little roof to protect you from the elements/parser 😂