4 ms·
Your long-hand isn't quite the same as your regex...it should be remember -> one_or_more -> digit; In regex parlance, \d+ explicitly allows for one or more dig
by balabaster 5y ago
Your long-hand isn't quite the same as your regex...it should be remember -> one_or_more -> digit;
In regex parlance, \d+ explicitly allows for one or more digits. Multiple tacitly implies 2 or more which would be \d{2,}
Also, your end char (which I assume you mean $) would be after the remember -> one_or_more -> digit;
- wruza 5y agoI didn’t refer to the manual (which is the entire goal of that format, isn’t it?) and don’t know what ‘multiple’ really means. So I stand both corrected and confirmed, I guess. That ‘end’ thing just closes the ‘optional’ group, I believe. There is no $ in an English form of this regex either.