Do C++ regular expressions have a way to refer to a fixed position within a string? I am looking for a notation that is (fictitiously) shown in the following example as @n
, where n
is the index of the following character:
string = "hello12345";
re = "[a-z]+[0-9]+(@7).+";
// Match: hello...12...345