@dicktyr its not by design, its because the regular expression library does not support searching backwards so it would require finding all matches forwards from the start of the document and picking the one before the current position and __nobody has written the code__. Pull requests that add the facility are welcome, attempts to shame volunteer contributors are not.