Couldn't find a builtin type for regular expression。Should I just use object
for that?
Reg exps are just objects of class RegExp
Resolved?
yeah, resolved, type TheExpression = RegExp
works
@avikchaudhuri Have you more powerful idea?
Like type ActionType = $/^[A-Z_]+$/;
? :slightly_smiling_face:
RegExp
type is type of variable, but $/^[A-Z_]+$/
can be subtype of string type — shifting powerty of flow to new dimension
Most helpful comment
Reg exps are just objects of class
RegExp