4 ms·
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 f
by Huppie 3y ago
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.
- dumbo-octopus 3y agoOr just tack a greedy anything-matcher to the front of the regex: .*(?: ... )