Weekly Shaarli

All links of one week in a single page.

Previous week

Week 24 (June 10, 2019)

Next week

Lookahead and Lookbehind Tutorial—Tips &Tricks

Lookarounds often cause confusion to the regex apprentice. I believe this confusion promptly disappears if one simple point is firmly grasped. It is that at the end of a lookahead or a lookbehind, the regex engine hasn't moved on the string. You can chain three more lookaheads after the first, and the regex engine still won't move. In fact, that's a useful technique.