You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Lexpy, ? means "zero or one character" and * means "zero or more characters". Based on this, why is the pattern ?* considered illegal while *? is allowed? Don't they both have the same semantics here:
*?: zero or more || zero or one -> zero || zero, zero || one, more || zero, more || one -> zero, one, more -> zero or more ?*: zero or one || zero or more -> zero || zero, zero || more, one || zero, one || more -> zero, more, one -> zero or more
The code at _utils.py#L15 already translates *? to *, why isn't this also done for ?*?
In Lexpy,
?
means "zero or one character" and*
means "zero or more characters". Based on this, why is the pattern?*
considered illegal while*?
is allowed? Don't they both have the same semantics here:*?
: zero or more || zero or one -> zero || zero, zero || one, more || zero, more || one -> zero, one, more -> zero or more?*
: zero or one || zero or more -> zero || zero, zero || more, one || zero, one || more -> zero, more, one -> zero or moreThe code at _utils.py#L15 already translates
*?
to*
, why isn't this also done for?*
?lexpy/lexpy/_utils.py
Line 51 in b69e029
The text was updated successfully, but these errors were encountered: