tirthb
tirthb
The original regex was `[1-2][0-9]{3}\-[0-1][0-9]\-[0-3][0-9]` But the contant regex in the general sol had an extra escape character. `string public constant regex = "[1-2][0-9]{3}\\-[0-1][0-9]\-[0-3][0-9]";`
Thank you for this useful regex utility in solidity. Is negative lookahead and optional not supported yet? e.g. `solregex --name TestRegex '(?!00)[0-9]{2}'` or `solregex --name TestRegex '[0-9]\-?[0-9]'` For reference: http://www.regular-expressions.info/lookaround.html
Thank you very much for this helpful library. It would be great if there was a way to substring with indexes like this method in Java `public String substring(int startIndex,...