Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
Huppie
2y ago
0 comments
Save
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
1 comments · 1 top-level
top
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