miniblog.
← Back to all posts
May 22, 2014 at 15:01
Debugging regular expressions with precedence issues is a royal pain. The pattern "[a-z]+ '(Foo)|(Bar)'" matches "Bar'". Argh.
Wilfred Hughes
Related Posts
Dec 2, 2013 at 18:30
Argh. Creating a file whose filename with a leading space is a royal pain. Ended up using a Python script just to see what was going on.
Wilfred Hughes
Shared words: Argh, royal, pain Score: 127.7
Aug 11, 2020 at 07:23
Today I needed a library that takes a regular expression and gives you a string that matches.
https://github.com/fent/randexp.js
fits that need nicely. Unfortunately, reading the docs has introduced me to evil patterns like /a^/ and /\1 (a)/. Yikes.
GitHub - fent/randexp.js: Create random strings that match a given regular expression.
Create random strings that match a given regular expression. - fent/randexp.js
Wilfred Hughes
Shared words: matches, regular, expressions, pattern Score: 116.3
Dec 4, 2016 at 15:13
Argh, I've hit a reliable segfault in Emacs. I wish distros didn't strip binaries, it makes debugging much harder.
Wilfred Hughes
Shared words: Debugging, Argh Score: 104.7