Eliteofdelete
Member
I figured I would just make another big thread to fill with my random questions. My current struggle has to deal with matchers. After reading about them and looking at some implementations of them, I tried to make a very simple case.
I was hoping this would give me "2" but instead I keep getting "No match attempted or previous match failed". I've played with it for awhile, changing the matcher and adding more text but nothing seems to help
.
Code:
string text, result;
matcher finder;
text = "2_text";
finder = create_matcher("^[0-9]$", text);
result = group(finder, 1);
print(result);
I was hoping this would give me "2" but instead I keep getting "No match attempted or previous match failed". I've played with it for awhile, changing the matcher and adding more text but nothing seems to help
