working lrexlib-pcre (after tearing out my hair all day)