find regex in backward direction ?

Виталий Фадеев vital.fadeev at gmail.com
Sat Dec 19 12:52:54 UTC 2020


We have:
     dstring s = "abc3abc7";

Source:
     https://run.dlang.io/is/PtjN4T

Goal:
     size_t pos = findRegexBackward( r"abc"d );
     assert( pos == 4 );


How to find regex in backward direction ?



More information about the Digitalmars-d-learn mailing list