Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
Huppie
2y ago
0 comments
Share
Another trick is you can put some regex engines in right-to-left mode, so my lazy (and admittedly relatively expensive cpu-wise) solution was to match ltr for first and rtl for last.
0 comments
default
newest
oldest
dumbo-octopus
2y ago
Or just tack a greedy anything-matcher to the front of the regex: .*(?: ... )
j
/
k
navigate · click thread line to collapse